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.

Table 6-3. Floating-point rounding direction macros
MacroDescription
FE_DOWNWARDRound down, towards negative infinity.
FE_TONEARESTRound to the nearest value.
FE_TOWARDZERORound towards zero.
FE_UPWARDRound up, towards positive infinity.