C numeric limits interface
From cppreference.com
See also std::numeric_limits interface.
Defined in header
<cstdint> |
|
minimum value of object of std::ptrdiff_t type (macro constant) |
|
maximum value of object of std::ptrdiff_t type (macro constant) |
|
maximum value of object of std::size_t type (macro constant) |
|
minimum value of object of std::sig_atomic_t type (macro constant) |
|
maximum value of object of std::sig_atomic_t type (macro constant) |
|
minimum value of object of wchar_t type (macro constant) |
|
maximum value of object of wchar_t type (macro constant) |
|
minimum value of object of std::wint_t type (macro constant) |
|
maximum value of object of std::wint_t type (macro constant) |
[edit] Limits of integer types
Defined in header
<climits> |
|
number of bits in byte (macro constant) |
|
maximum number of bytes in a multibyte character (macro constant) |
|
minimum value of char (macro constant) |
|
maximum value of char (macro constant) |
|
minimum value of signed char, short, int, long and long long respectively (macro constant) |
|
maximum value of signed char, short, int, long and long long respectively (macro constant) |
|
maximum value of unsigned char, unsigned short, unsigned int, unsigned long and unsigned long long respectively (macro constant) |
[edit] Limits of floating point types
Defined in header
<cfloat> |
|
the radix (integer base) used by the representation of all three floating-point types (macro constant) |
|
number of decimal digits that can be converted to long double and back without losing precision (macro constant) |
|
minimum value of float, double and long double respectively (macro constant) |
|
maximum value of float, double and long double respectively (macro constant) |
|
difference between 1.0 and the next representable value for float, double and long double respectively (macro constant) |
|
number of decimal digits that can be represented without losing precision for float, double and long double respectively (see std::numeric_limits::digits10 for explanation) (macro constant) |
|
number of base FLT_RADIX digits that can be represented without losing precision for float, double and long double respectively (macro constant) |
|
minimum negative integer such that FLT_RADIX raised by power one less than that integer is a normalized float, double and long double respectively (macro constant) |
|
minimum negative integer such that 10 raised by power one less than that integer is a normalized float, double and long double respectively (macro constant) |
|
maximum positive integer such that FLT_RADIX raised by power one more than that integer is a normalized float, double and long double respectively (macro constant) |
|
maximum positive integer such that 10 raised by power one more than that integer is a normalized float, double and long double respectively (macro constant) |
|
default rounding mode of floating-point arithmetics (macro constant) |
|
(C++11)
|
specifies in what precision all arithmetic operations are done (macro constant) |