Determines the current rounding direction in the floating-point environment #include <fenv.h> int fegetround( void ); The fegetround( ) function obtains the current rounding direction. The integer return value is negative if the rounding direction is undetermined, or equal to one of the following macros, defined in fenv.h as integer constants, if the function is successful:
ExampleSee the examples for fmod( ) and fesetround( ) in this chapter. See Also |