fegetenv() — Store 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 fegetenv(fenv_t *envp);
General description
fegetenv() stores the
current floating-point environment in the object pointed to by envp.
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 |
---|---|---|
fegetenv | 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 store 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, fegetenv() returns 0 upon completion of the store.