feholdexcept() — Save the current floating-point environment
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS V1R8 |
Format
#define _ISOC99_SOURCE
#include <fenv.h>
int feholdexcept(fenv_t *envp);
General description
feholdexcept() saves
the current floating-point environment in the object pointed to by envp,
clears the floating-point status flags, and then installs a non-stop
(continue on floating-point exceptions) mode, if available, for all
floating-point exceptions.
Note: The following table shows the viable
formats for these functions. See IEEE binary floating-point for
more information about IEEE Binary Floating-Point.
Function | Hex | IEEE |
---|---|---|
feholdexcept | X |
Notes:
- To use IEEE decimal floating-point, the hardware must have the Decimal Floating-Point Facility installed.
- If the hardware has the Decimal Floating-Point Facility installed, this function will save the decimal floating-point rounding mode.
- This function works in IEEE decimal floating-point format. See "IEEE Decimal Floating-Point" for more information.
Returned value
If successful, feholdexcept() returns 0 when the non-stop floating-point exception handling was successfully installed.