Pole error exception
This macro expands to a value of type int that identifies the floating-point exception raised on pole errors.

Pole errors occur when an operation has a result that is asymptotically infinite, such as divisions by zero, or log(0.0).

It is defined as a value that is an exact power of two, allowing several floating-point exceptions to be combined (using the bitwise OR operator: |) into a single value:
macro valuedescription
FE_DIVBYZEROPole error: division by zero, or some other asymptotically infinite result (from finite arguments).
FE_INEXACTInexact: the result is not exact.
FE_INVALIDDomain error: At least one of the arguments is a value for which the function is not defined.
FE_OVERFLOWOverflow range error: The result is too large in magnitude to be represented as a value of the return type.
FE_UNDERFLOWUnderflow range error: The result is too small in magnitude to be represented as a value of the return type.
FE_ALL_EXCEPTAll exceptions (selects all of the exceptions supported by the implementation).
Certain library implementations may support additional floating-point exception values (with their corresponding macros also beginning with FE_).
Libraries may define in <fenv.h> only the macro values above they support (the others may not be defined).
FE_DIVBYZERO is always defined if math_errhandling has MATH_ERREXCEPT set.
At least all of the above macro values are defined in <cfenv> (even if not supported by the implementation).

See also