float.h

Defines constants describing the properties of floating point arithmetic. Refer to the following tables:

Table 1. Rounding and Radix Constants
Constant Description
FLT_ROUNDS Gives the rounding mode implemented
FLT_RADIX The base of the exponent

All other constants are prefixed by either FLT_, DBL_ or LDBL_. FLT_ is a constant for type float, DBL_ for double and LDBL_ for longdouble.

Table 2. Other constants defined in float.h
Constant Description
DIG Number of significant digits.
EPSILON Smallest positive x for which 1.0 + x != x.
MANT_DIG Number of binary mantissa digits.
MAX Largest normalized finite value.
MAX_EXP Maximum exponent such that FLT_RADIXMAX_EXP is a finite normalized value.
MAX_10_EXP Maximum exponent such that 10MAX_10_EXP is a finite normalized value.
MIN Smallest positive normalized value.
MIN_EXP Smallest negative exponent such that FLT_RADIXMIN_EXP is a normalized value.
MIN_10_EXP Smallest negative exponent such that 10MIN_10_EXP is a normalized value.