6.5.3 fenv Exception Macros

Attention: These macros are implemented only by MPLAB XC32 C compilers when using a device with a FPU.

The following macros relate to floating-point exceptions.

Table 6-2. Floating-point exception macros
MacroDescription
FE_DIVBYZEROThe operation on finite numbers has produced a result that is infinity.
FE_INEXACTThe rounded result of an operation differs to the infinite precision result.
FE_INVALIDThe result of the operation cannot be expressed as a value.
FE_OVERFLOWThe absolute value of the floating-point result is too large to be represented.
FE_UNDERFLOWThe absolute value of the floating-point result is smaller than the smallest positive normalized floating-point number.
FE_ALL_EXCEPTThe bitwise OR of the above floating-point exception macros.