fenv Rounding Direction Macros

Attention: These macros are implemented only by MPLAB XC32 C compilers.

The following macros relate to the rounding direction of floating-point values that cannot be exactly represented in the significand.

Table 1. Floating-point rounding direction macros
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.