C numeric limits interface

From Cppreference

Jump to: navigation, search

See also numeric_limits interface.

Defined in header <cstdint>
PTRDIFF_MIN (C++11) minimum value of object of ptrdiff_t type
(macro constant)
PTRDIFF_MAX (C++11) maximum value of object of ptrdiff_t type
(macro constant)
SIZE_MAX (C++11) maximum value of object of size_t 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 signed char
(macro constant)
SCHAR_MAX maximum value of signed char
(macro constant)
UCHAR_MAX maximum value of unsigned char
(macro constant)
CHAR_MIN minimum value of char
(macro constant)
CHAR_MAX maximum value of char
(macro constant)
MB_LEN_MAX maximum number of bytes in a multibyte character
(macro constant)
SHRT_MIN minimum value of short
(macro constant)
SHRT_MAX maximum value of short
(macro constant)
USHRT_MAX maximum value of unsigned short
(macro constant)
INT_MIN minimum value of int
(macro constant)
INT_MAX maximum value of int
(macro constant)
UINT_MAX maximum value of unsigned int
(macro constant)
LONG_MIN minimum value of long
(macro constant)
LONG_MAX maximum value of long
(macro constant)
ULONG_MAX maximum value of unsigned long
(macro constant)
LLONG_MIN (C++11) minimum value of long long
(macro constant)
LLONG_MAX (C++11) maximum value of long long
(macro constant)
ULLONG_MAX (C++11) maximum value of unsigned long long
(macro constant)
Limits of floating point types
Defined in header <cfloat>
FLT_RADIX
(macro constant)
DECIMAL_DIG
(macro constant)
FLT_MIN minimum value of float
(macro constant)
FLT_MAX maximum value of float
(macro constant)
FLT_EPSILON difference between 1.0' and the next representable value for float
(macro constant)
FLT_DIG number of decimal digits that can be represented without losing precision for float
(macro constant)
FLT_MANT_DIG number of base FLT_RADIX' digits that can be represented without losing precision for float
(macro constant)
FLT_MIN_EXP minimum negative integer such that FLT_RADIX' raised by power one less than that integer is a normalized float
(macro constant)
FLT_MIN_10_EXP minimum negative integer such that 10' raised by power one less than that integer is a normalized float
(macro constant)
FLT_MAX_EXP maximum positive integer such that FLT_RADIX' raised by power one more than that integer is a normalized float
(macro constant)
FLT_MAX_10_EXP maximum positive integer such that 10' raised by power one more than that integer is a normalized float
(macro constant)
FLT_ROUNDS
(macro constant)
FLT_EVAL_METHOD
(macro constant)
DBL_MIN minimum value of double
(macro constant)
DBL_MAX maximum value of double
(macro constant)
DBL_EPSILON difference between 1.0' and the next representable value for double
(macro constant)
DBL_DIG number of decimal digits that can be represented without losing precision for double
(macro constant)
DBL_MANT_DIG number of base FLT_RADIX' digits that can be represented without losing precision for double
(macro constant)
DBL_MIN_EXP minimum negative integer such that FLT_RADIX' raised by power one less than that integer is a normalized double
(macro constant)
DBL_MIN_10_EXP minimum negative integer such that 10' raised by power one less than that integer is a normalized double
(macro constant)
DBL_MAX_EXP maximum positive integer such that FLT_RADIX' raised by power one more than that integer is a normalized double
(macro constant)
DBL_MAX_10_EXP maximum positive integer such that 10' raised by power one more than that integer is a normalized double
(macro constant)
LDBL_MIN minimum value of long double
(macro constant)
LDBL_MAX maximum value of long double
(macro constant)
LDBL_EPSILON difference between 1.0' and the next representable value for long double
(macro constant)
LDBL_DIG number of decimal digits that can be represented without losing precision for long double
(macro constant)
LDBL_MANT_DIG number of base FLT_RADIX' digits that can be represented without losing precision for long double
(macro constant)
LDBL_MIN_EXP minimum negative integer such that FLT_RADIX' raised by power one less than that integer is a normalized long double
(macro constant)
LDBL_MIN_10_EXP minimum negative integer such that 10' raised by power one less than that integer is a normalized long double
(macro constant)
LDBL_MAX_EXP maximum positive integer such that FLT_RADIX' raised by power one more than that integer is a normalized long double
(macro constant)
LDBL_MAX_10_EXP maximum positive integer such that 10' raised by power one more than that integer is a normalized long double
(macro constant)