Chapter Contents |
Previous |
Next |
feraiseexcept |
Portability: | C99 |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
CAUTIONS | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <fenv.h> void feraiseexcept(int excepts);
DESCRIPTION |
feraiseexcept
raises the
floating-point exceptions indicated by the excepts argument, which should
be the sum of one or more of the exception names defined by fenv.h
. An exception is raised by setting the exception bit
in the floating-point status. If trapping is enabled for that exception,
the exception will be trapped and a signal will be raised.
RETURN VALUE |
feraiseexcept
has no return
value.
CAUTIONS |
feraiseexcept
returns -1
when called from a function whose default floating-point format is hexadecimal,
that is, one compiled without the bfp
option.
A program which calls feraiseexcept
must
use the standard FENV_ACCESS pragma in an enclosing scope, or the effects
are unpredictable.
RELATED FUNCTIONS |
feclearexcept
, fegetexceptflag
,
fesetexceptflag
, fetestexcept
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.