1.5. Limits <float.h> and <limits.h>

The headers <float.h> and <limits.h> define several macros that expand to various limits and parameters.

The values in <float.h> are as follows:

Table 1-1. Value of limits.h

M1750 ERC32
FLT_RADIX 2 2
FLT_ROUNDS 0 0
FLT_DIG 6 6
FLT_EPSILON 2.38418595e-7 1.19209290e-07
FLT_MANT_DIG 23 24
FLT_MAX 1.7014116e38 3.40282347e+38
FLT_MAX_10_EXP 38 38
FLT_MAX_EXP 126 128
FLT_MIN 1.46936794e-39 1.17549435e-38
FLT_MIN_10_EXP -39 -37
FLT_MIN_EXP -129 -125
DBL_DIG 11 15
DBL_EPSILON 3.637978807092e-12 2.2204460492503131e-16
DBL_MANT_DIG 39 53
DBL_MAX 1.701411834602e38 1.7976931348623157e+308
DBL_MAX_10_EXP 38 308
DBL_MAX_EXP 126 1024
DBL_MIN 1.469367938528e-39 2.2250738585072014e-308
DBL_MIN_10_EXP -39 -307
DBL_MIN_EXP -129 -1021

The values in <limits.h> are as follows:

Table 1-2. Value of limits.h

M1750 ERC32
CHAR_BIT 16 8
CHAR_MAX 32767 127
CHAR_MIN -32768 -128
INT_MAX 32767 2147483647
INT_MIN -32768 -2147483648
LONG_MAX 2147483647 2147483647
LONG_MIN -2147483648 -2147483648
MB_LEN_MAX 1 1
SCHAR_MAX 32767 127
SCHAR_MIN -32768 -128
SHRT_MAX 32767 32767
SHRT_MIN -32768 -32768
UCHAR_MAX 65535 255
UINT_MAX 65535 4294967295
ULONG_MAX 4294967295 4294967295
USHRT_MAX 65535 65535

See the source files for more information.