6.5.4 fenv Rounding Direction Macros
Attention: These macros are implemented only by
MPLAB XC32 C compilers when using a device with a FPU.
The following macros relate to the rounding direction of floating-point values that cannot be exactly represented in the significand.
Macro | Description |
---|---|
FE_DOWNWARD | Round down, towards negative infinity. |
FE_TONEAREST | Round to the nearest value. |
FE_TOWARDZERO | Round towards zero. |
FE_UPWARD | Round up, towards positive infinity. |