Everything
7.4.15 <fenv.h>

Provides access to the floating-point environment.

The following macros and functions are all implementation-defined.

Type

Definition Name

Description

Type

(macro)

fenv_t

Indicates the type of the entire floating-point environment.

fexcept_t

Indicates the type of the floating-point status flags.

Constant

(macro)

FE_DIVBYZERO

FE_INEXACT

FE_INVALID

FE_OVERFLOW

FE_UNDERFLOW

FE_ALL_EXCEPT

Indicates the values (macros) defined when the floating-point exception is supported.

FE_DOWNWARD

FE_TONEAREST

FE_TOWARDZERO

FE_UPWARD

Indicates the values (macros) of the floating-point rounding direction.

FE_DFL_ENV

Indicates the default floating-point environment of the program.

Function

feclearexcept

Attempts to clear a floating-point exception.

fegetexceptflag

Attempts to store the state of a floating-point flag in an object.

feraiseexcept

Attempts to generate a floating-point exception.

fesetexceptflag

Attempts to set a floating-point flag.

fetestexcept

Checks if floating-point flags are set.

fegetround

Gets the rounding direction.

fesetround

Sets the rounding direction.

fegetenv

Attempts to get the floating-point environment.

feholdexcept

Saves the floating-point environment, clears the floating-point status flags, and sets the non-stop mode for the floating-point exceptions.

fesetenv

Attempts to set the floating-point environment.

feupdateenv

Attempts to save the floating-point exceptions in the automatic storage, set the floating-point environment, and generate the saved floating-point exceptions.