INtime SDK Help
fegetround, fesetround

The fegetround() function determines the current floating-point rounding mode, and the fesetround() function sets the current rounding mode to round. The rounding mode is one of FE_TONEAREST, FE_DOWNWARD, FE_UPWARD, or FE_TOWARDZERO, as described in fenv(3).

Library

Math Library (libm, -lm)

#include <fenv.h>
#pragma STDC FENV_ACCESS ON

int
fegetround(void);

int
fesetround(int round);

Return Values

Standards

feclearexcept(3), fenv(3), feraiseexcept(3), fesetenv(3), fetestexcept(3), fpgetmask(3), fpgetprec(3), fpsetmask(3), fpsetprec(3)

History

These routines first appeared in FreeBSD 5.3.
See Also