Important: The information in this document is obsolete and should not be used for new development.
feclearexcept
You can use thefeclearexcept
function to clear one or more floating-point exceptions.
void feclearexcept (int excepts);
excepts
- A mask indicating which floating-point exception flags should be cleared.
DESCRIPTION
Thefeclearexcept
function clears the floating-point exceptions specified by its argument. The argument may be one of the constants in Table 8-2, two or more of these constants ORed together, or the constantFE_ALL_EXCEPT
.EXAMPLES
feclearexcept(FE_INEXACT); /* clears the inexact flag */ feclearexcept(FE_INEXACT|FE_UNDERFLOW); /* clears the inexact and underflow flags */ feclearexcept(FE_ALL_EXCEPT); /* clears all flags */