Chapter Contents |
Previous |
Next |
fetestexcept |
Portability: | C99 |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
CAUTIONS | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <fenv.h> int fetestexcept(int excepts);
DESCRIPTION |
fetestexcept
is used to
test the exception flag settings in the current floating-point environment.
The excepts
argument is the sum of one or
more floating-point exception names indicating which flags are to be tested.
RETURN VALUE |
fetestexcept
returns the
sum of the exception names for the subset of the requested exceptions which
are set in the current environment.
CAUTIONS |
fetestexcept
has no meaning
when called from a function whose default floating-point format is hexadecimal,
that is, one compiled without the bfp
option.
If called, it returns zero.
A program which calls fegetenv
must use
the standard FENV_ACCESS pragma in an enclosing scope, or the effects are
unpredictable.
RELATED FUNCTIONS |
feclearexcept
, fegetexceptflag
,
feraiseexcept
, fesetexceptflag
SEE ALSO |
"Mathematical Functions" in Chapter 2, "Function Categories"
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.