Namespaces
Variants
Views
Actions

Standard library header <cfenv>

From cppreference.com
< cpp‎ | header
Revision as of 07:01, 23 December 2012 by Bazzy (Talk | contribs)

This header was originally in the C standard library as <fenv.h>.

This header is part of the floating-point environment library.


Contents

Types

fenv_t The type representing the entire floating-point environment
fexcept_t The type representing all floating-point status flags collectively

Functions

Template:cpp/numeric/fenv/dcl list feclearexceptTemplate:cpp/numeric/fenv/dcl list fetestexceptTemplate:cpp/numeric/fenv/dcl list feraiseexceptTemplate:cpp/numeric/fenv/dcl list feexceptflagTemplate:cpp/numeric/fenv/dcl list feroundTemplate:cpp/numeric/fenv/dcl list feenvTemplate:cpp/numeric/fenv/dcl list feholdexceptTemplate:cpp/numeric/fenv/dcl list feupdateenv

Macros

Template:cpp/numeric/fenv/dcl list FE exceptionsTemplate:cpp/numeric/fenv/dcl list FE roundTemplate:cpp/numeric/fenv/dcl list FE DFL ENV

Synopsis

namespace std {
    // types
    typedef /*object type*/ fenv_t;
    typedef /*integer type*/ fexcept_t;
 
    // functions
    int feclearexcept(int except);
    int fegetexceptflag(fexcept_t *pflag, int except);
    int feraiseexcept(int except);
    int fesetexceptflag(const fexcept_t *pflag, int except);
    int fetestexcept(int except);
    int fegetround(void);
    int fesetround(int mode);
    int fegetenv(fenv_t *penv);
    int feholdexcept(fenv_t *penv);
    int fesetenv(const fenv_t *penv);
    int feupdateenv(const fenv_t *penv);
}