Name
fetestexcept
Synopsis
Tests the status flags in the floating-point environment against a bit mask
#include <fenv.h> intfetestexcept( intexcepts);
The fetestexcept() function
takes as its argument a bitwise OR of the values of macros defined
in fenv.h to represent the
floating-point exception flags. The macros are listed under feraiseexcept() in this chapter.
fetestexcept() returns the
bitwise AND of the values representing the exception flags that were
set in the argument and the exception flags that are currently set
in the floating-point environment.
Example
See the examples at feclearexcept() and
feholdexcept() in this
chapter.
See Also
feclearexcept(),
feraisexcept(), feholdexcept(),
fesetexceptflag(),
feupdateenv(), fegetenv(), fesetenv()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access