6.6.22 FLT_ROUNDS Macro

Represents the rounding mode for floating-point operations.

Include

<float.h>

Definition

The value 1 for all compilers, implying that rounding is to the nearest representable value.

Remarks

The meaning of values for this macro as defined by the C standard are as follows.

-1
indeterminable
0
toward zero
1
to nearest representable value
2
toward positive infinity
3
toward negative infinity