fenv Exception Macros

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

The following macros relate to floating-point exceptions.

Table 1. Floating-point exception macros
Macro Description
FE_DIVBYZERO The operation on finite numbers has produced a result that is infinity.
FE_INEXACT The rounded result of an operation differs to the infinite precision result.
FE_INVALID The result of the operation cannot be expressed as a value.
FE_OVERFLOW The absolute value of the floating-point result is too large to be represented.
FE_UNDERFLOW The absolute value of the floating-point result is smaller than the smallest positive normalized floating-point number.
FE_ALL_EXCEPT The bitwise OR of the above floating-point exception macros.