Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C programming/fenv.h/Function reference

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ feclearexcept Prototype int feclearexcept(int excepts); Description 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 Prototype int fegetenv(fenv_t *envp); Description 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 Prototype int fesetenv(const fenv_t *envp); Description 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.