fegetround() — Get the current rounding mode
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS V1R7 |
Format
#define _ISOC99_SOURCE
#include <fenv.h>
int fegetround(void);
General description
fegetround() gets the
current rounding mode.
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 |
---|---|---|
fegetround | X |
Note: This function will not return or update decimal
floating-point rounding mode bits. The fe_dec_getround() and fe_dec_setround() functions
can be used to get and set the current rounding mode for decimal floating-point
operations.
Returned value
If successful, fegetround() returns the value of the rounding mode macro representing the current rounding mode. Otherwise, returns a negative value if there is no such rounding mode macro or the current rounding mode is not determinable.