Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.29 KB

feclearexcept1.md

File metadata and controls

60 lines (44 loc) · 2.29 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: feclearexcept
feclearexcept1
04/05/2018
feclearexcept
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-runtime-l1-1-0.dll
DLLExport
apiref
feclearexcept
fenv/feclearexcept
feclearexcept function
ef419da3-c248-4432-b53c-8e7a475d9533

feclearexcept

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

Syntax

int feclearexcept(
   int excepts
);

Parameters

excepts
The exception status flags to clear.

Return value

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

Remarks

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 macro Description
FE_DIVBYZERO A singularity or pole error occurred in an earlier floating-point operation; an infinity value was created.
FE_INEXACT The function was forced to round the stored result of an earlier floating-point operation.
FE_INVALID A domain error occurred in an earlier floating-point operation.
FE_OVERFLOW A range error occurred; an earlier floating-point operation result was too large to be represented.
FE_UNDERFLOW An earlier floating-point operation result was too small to be represented at full precision; a denormal value was created.
FE_ALL_EXCEPT The 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.

Requirements

Function C header C++ header
feclearexcept <fenv.h> <cfenv>

For more compatibility information, see Compatibility.

See also

Alphabetical function reference
fetestexcept