feclearexcept

Visual Studio 2015
 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at feclearexcept1.

Attempts to clear the floating-point exception flags specified by the argument.

int feclearexcept(  
   int excepts  
);  

Parameters

excepts
The exception status flags to clear.

Returns zero if excepts is zero, or if all the specified exceptions were successfully cleared. Otherwise, returns a nonzero value.

The feclearexcept function attempts to clear the floating point exception status flags specified by excepts. The function supports these exception macros, defined in fenv.h:

Exception MacroDescription
FE_DIVBYZEROA singularity or pole error occurred in an earlier floating-point operation; an infinity value was created.
FE_INEXACTThe function was forced to round the stored result of an earlier floating-point operation.
FE_INVALIDA domain error occurred in an earlier floating-point operation.
FE_OVERFLOWA range error occurred; an earlier floating-point operation result was too large to be represented.
FE_UNDERFLOWAn earlier floating-point operation result was too small to be represented at full precision; a denormal value was created.
FE_ALLEXCEPTThe bitwise OR of all supported floating-point exceptions.

The excepts argument may be zero, or the bitwise OR of one or more of the supported exception macros. The result of any other argument value is undefined.

FunctionC headerC++ header
feclearexcept<fenv.h><cfenv>

For additional compatibility information, see Compatibility.

Alphabetical Function Reference
fetestexcept

Show: