Chapter Contents |
Previous |
Next |
fesetenv |
Portability: | C99 |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
CAUTIONS | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <fenv.h> void fesetenv(const fenv_t * envp);
DESCRIPTION |
fesetenv
is used to replace
the current floating-point environment by one stored in the location addressed
by the ENVP argument. All elements of the floating-point environment are
replaced, including the exception bits, the rounding mode, and the exceptions
for which trapping is enabled.
RETURN VALUE |
fesetenv
has no return
value.
CAUTIONS |
fesetenv
has no effect
when called from a function whose default floating-point format is hexadecimal,
that is, one compiled without the bfp
option.
A program which calls fegetenv
must use
the standard FENV_ACCESS pragma in an enclosing scope, or the effects are
unpredictable.
RELATED FUNCTIONS |
fegetenv
, feholdexcept
,
feupdateenv
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.