C Programming/fenv.h/Function reference
feclearexcept
[edit | edit source]Prototype
[edit | edit source]int feclearexcept(int excepts);
Description
[edit | edit source]This function attempts to clear the supported floating-point exceptions represented by excepts. If the argument is zero or if all the specified exceptions were successfully cleared, this function returns zero. Otherwise, it returns a non-zero value.
fegetenv
[edit | edit source]Prototype
[edit | edit source]int fegetenv(fenv_t *envp);
Description
[edit | edit source]This function attempts to store the current floating-point environment in the object pointed to by envp. If the representation was successfully stored, this function returns zero. Otherwise, it returns a non-zero value.
fesetenv
[edit | edit source]Prototype
[edit | edit source]int fesetenv(const fenv_t *envp);
Description
[edit | edit source]This function attempts to establish the floating-point environment represented by the object pointed to by envp. The argument envp points to an object set by a call to fegetenv() or feholdexcept(), or equal a floating-point environment macro. This function does not raise floating-point exceptions, but only installs the state of the floating-point status flags represented through its argument.