##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# feraiseexcept

From cppreference.com
< c‎ | numeric‎ | fenv

Defined in header `<<fenv.h>>` |  |
int feraiseexcept( int excepts ); |  | (since C99)

Attempts to raise all floating point exceptions listed in `excepts` (a bitwise OR of the floating point exception macros). If one of the exceptions is FE_OVERFLOW or FE_UNDERFLOW, this function may additionally raise FE_INEXACT. The order in which the exceptions are raised is unspecified, except that FE_OVERFLOW and FE_UNDERFLOW are always raised before FE_INEXACT.

### [edit] Parameters

excepts | - | bitmask listing the exception flags to raise

### [edit] Return value

​0​ if all listed exceptions were raised, non-zero value otherwise.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

feclearexcept (C99) | clears the specified floating-point status flags (function) [edit]
fetestexcept (C99) | determines which of the specified floating-point status flags are set (function) [edit]
C++ documentation for feraiseexcept

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/fenv/feraiseexcept&oldid=62550"
Category:

- Todo no example