Difference between revisions of "cpp/types/climits"
From cppreference.com
m (wchar_t) |
(fmt) |
||
Line 15: | Line 15: | ||
{{dcl list macro const | WINT_MIN | maximum value of object of {{cpp|std::wint_t}} type | notes={{mark c++11}} | nolink=true}} | {{dcl list macro const | WINT_MIN | maximum value of object of {{cpp|std::wint_t}} type | notes={{mark c++11}} | nolink=true}} | ||
{{dcl list macro const | WINT_MAX | maximum value of object of {{cpp|std::wint_t}} type | notes={{mark c++11}} | nolink=true}} | {{dcl list macro const | WINT_MAX | maximum value of object of {{cpp|std::wint_t}} type | notes={{mark c++11}} | nolink=true}} | ||
− | {{dcl list | + | {{dcl list end}} |
+ | |||
+ | ===Limits of integer types=== | ||
+ | {{dcl list begin}} | ||
{{dcl list header | climits}} | {{dcl list header | climits}} | ||
{{dcl list macro const | CHAR_BIT | number of bits in byte | nolink=true }} | {{dcl list macro const | CHAR_BIT | number of bits in byte | nolink=true }} | ||
Line 36: | Line 39: | ||
{{dcl list macro const | LLONG_MAX | maximum value of {{cpp|long long}} | notes={{mark c++11}} | nolink=true }} | {{dcl list macro const | LLONG_MAX | maximum value of {{cpp|long long}} | notes={{mark c++11}} | nolink=true }} | ||
{{dcl list macro const | ULLONG_MAX | maximum value of {{cpp|unsigned long long}} | notes={{mark c++11}} | nolink=true }} | {{dcl list macro const | ULLONG_MAX | maximum value of {{cpp|unsigned long long}} | notes={{mark c++11}} | nolink=true }} | ||
− | {{dcl list | + | {{dcl list end}} |
+ | |||
+ | ===Limits of floating point types=== | ||
+ | {{dcl list begin}} | ||
{{dcl list header | cfloat}} | {{dcl list header | cfloat}} | ||
{{dcl list macro const | FLT_RADIX | the radix (integer base) used by the representation of all three floating-point types | nolink=true }} | {{dcl list macro const | FLT_RADIX | the radix (integer base) used by the representation of all three floating-point types | nolink=true }} |
Revision as of 11:25, 8 November 2011
See also numeric_limits
interface.
Defined in header
<cstdint> | |
PTRDIFF_MIN (C++11) |
minimum value of object of Template:cpp type (macro constant) |
PTRDIFF_MAX (C++11) |
maximum value of object of Template:cpp type (macro constant) |
SIZE_MAX (C++11) |
maximum value of object of Template:cpp type (macro constant) |
SIG_ATOMIC_MIN (C++11) |
maximum value of object of Template:cpp type (macro constant) |
SIG_ATOMIC_MAX (C++11) |
maximum value of object of Template:cpp type (macro constant) |
WCHAR_MIN (C++11) |
maximum value of object of Template:cpp type (macro constant) |
WCHAR_MAX (C++11) |
maximum value of object of Template:cpp type (macro constant) |
WINT_MIN (C++11) |
maximum value of object of Template:cpp type (macro constant) |
WINT_MAX (C++11) |
maximum value of object of Template:cpp type (macro constant) |
Limits of integer types
Defined in header
<climits> | |
CHAR_BIT |
number of bits in byte (macro constant) |
SCHAR_MIN |
minimum value of Template:cpp (macro constant) |
SCHAR_MAX |
maximum value of Template:cpp (macro constant) |
UCHAR_MAX |
maximum value of Template:cpp (macro constant) |
CHAR_MIN |
minimum value of Template:cpp (macro constant) |
CHAR_MAX |
maximum value of Template:cpp (macro constant) |
MB_LEN_MAX |
maximum number of bytes in a multibyte character (macro constant) |
SHRT_MIN |
minimum value of Template:cpp (macro constant) |
SHRT_MAX |
maximum value of Template:cpp (macro constant) |
USHRT_MAX |
maximum value of unsigned short (macro constant) |
INT_MIN |
minimum value of Template:cpp (macro constant) |
INT_MAX |
maximum value of Template:cpp (macro constant) |
UINT_MAX |
maximum value of Template:cpp (macro constant) |
LONG_MIN |
minimum value of Template:cpp (macro constant) |
LONG_MAX |
maximum value of Template:cpp (macro constant) |
ULONG_MAX |
maximum value of Template:cpp (macro constant) |
LLONG_MIN (C++11) |
minimum value of Template:cpp (macro constant) |
LLONG_MAX (C++11) |
maximum value of Template:cpp (macro constant) |
ULLONG_MAX (C++11) |
maximum value of Template:cpp (macro constant) |
Limits of floating point types
Defined in header
<cfloat> | |
FLT_RADIX |
the radix (integer base) used by the representation of all three floating-point types (macro constant) |
DECIMAL_DIG (C++11) |
number of decimal digits that can be converted to Template:cpp and back without losing precision (macro constant) |
FLT_MIN |
minimum value of Template:cpp (macro constant) |
FLT_MAX |
maximum value of Template:cpp (macro constant) |
FLT_EPSILON |
difference between Template:cpp' and the next representable value for Template:cpp (macro constant) |
FLT_DIG |
number of decimal digits that can be represented without losing precision for Template:cpp (macro constant) |
FLT_MANT_DIG |
number of base FLT_RADIX ' digits that can be represented without losing precision for Template:cpp (macro constant) |
FLT_MIN_EXP |
minimum negative integer such that FLT_RADIX ' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
FLT_MIN_10_EXP |
minimum negative integer such that Template:cpp' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
FLT_MAX_EXP |
maximum positive integer such that FLT_RADIX ' raised by power one more than that integer is a normalized Template:cpp (macro constant) |
FLT_MAX_10_EXP |
maximum positive integer such that Template:cpp' raised by power one more than that integer is a normalized Template:cpp (macro constant) |
FLT_ROUNDS |
rounding mode of floating-point arithmetics, equal to Template:cpp (macro constant) |
FLT_EVAL_METHOD (C++11) |
use of extended precision for intermediate results: 0 not used, 1 Template:cpp is used instead of Template:cpp, 2: Template:cpp is used (macro constant) |
DBL_MIN |
minimum value of Template:cpp (macro constant) |
DBL_MAX |
maximum value of Template:cpp (macro constant) |
DBL_EPSILON |
difference between Template:cpp' and the next representable value for Template:cpp (macro constant) |
DBL_DIG |
number of decimal digits that can be represented without losing precision for Template:cpp (macro constant) |
DBL_MANT_DIG |
number of base FLT_RADIX ' digits that can be represented without losing precision for Template:cpp (macro constant) |
DBL_MIN_EXP |
minimum negative integer such that FLT_RADIX ' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
DBL_MIN_10_EXP |
minimum negative integer such that Template:cpp' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
DBL_MAX_EXP |
maximum positive integer such that FLT_RADIX ' raised by power one more than that integer is a normalized Template:cpp (macro constant) |
DBL_MAX_10_EXP |
maximum positive integer such that Template:cpp' raised by power one more than that integer is a normalized Template:cpp (macro constant) |
LDBL_MIN |
minimum value of Template:cpp (macro constant) |
LDBL_MAX |
maximum value of Template:cpp (macro constant) |
LDBL_EPSILON |
difference between Template:cpp' and the next representable value for Template:cpp (macro constant) |
LDBL_DIG |
number of decimal digits that can be represented without losing precision for Template:cpp (macro constant) |
LDBL_MANT_DIG |
number of base FLT_RADIX ' digits that can be represented without losing precision for Template:cpp (macro constant) |
LDBL_MIN_EXP |
minimum negative integer such that FLT_RADIX ' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
LDBL_MIN_10_EXP |
minimum negative integer such that Template:cpp' raised by power one less than that integer is a normalized Template:cpp (macro constant) |
LDBL_MAX_EXP |
maximum positive integer such that FLT_RADIX ' raised by power one more than that integer is a normalized Template:cpp (macro constant) |
LDBL_MAX_10_EXP |
maximum positive integer such that Template:cpp' raised by power one more than that integer is a normalized Template:cpp (macro constant) |