C Programming/fenv.h/fesetenv

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Function 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.

References

[edit | edit source]