float.h - floating types
The characteristics of floating types are defined in terms of a model that describes a representation of floating-point numbers and values that provide information about an implementation's floating-point arithmetic.
The following parameters are used to define the model for each floating-point type:
FLT_RADIX will be a constant expression suitable for use in the #if preprocessing directives. All except FLT_RADIX and FLT_ROUNDS have separate names for all three floating-point types. The floating-point model representation is provided for all macro names except FLT_ROUNDS.
The rounding mode for floating-point addition is characterised by the value of FLT_ROUNDS:
- toward 0.0
- to nearest
- toward positive infinity
- toward negative infinity
All other values for FLT_ROUNDS characterise implementation-dependent rounding behaviour.
The macro names given in the following list will be defined as expressions with values that are equal or greater in magnitude (absolute value) to those shown, with the same sign.
The macro names given in the following list will be defined as expressions with values that will be equal to or greater than those shown.
The macro names given in the following list will be defined as expressions with values that will be equal to or less than those shown.