Important: The information in this document is obsolete and should not be used for new development.
Environmental Controls
Table E-3 Environmental access Action Function prototype Get void fegetenv (fenv_t *envp); Set void fesetenv (const fenv_t *envp); Save int feholdexcept (fenv_t * envp); Restore void feupdateenv (const fenv_t *envp);
Table E-4 Floating-point exceptions Exceptions Action Function prototype FE_INEXACT Get void fegetexcept(fexcept_t *flagp,
int excepts);FE_DIVBYZERO Set void feraiseexcept (int excepts); FE_UNDERFLOW Clear void feclearexcept (int excepts); FE_OVERFLOW void fesetexcept (const fexcept_t *flagp, int excepts); FE_INVALID Test int fetestexcept (int excepts);
Table E-5 Rounding direction modes Modes Action Function prototype FE_TONEAREST Get int fegetround (void); FE_TOWARDZERO Set int fesetround (int round); FE_UPWARD FE_DOWNWARD