Namespaces
Variants
Views
Actions

feraiseexcept

From cppreference.com
< c‎ | numeric‎ | fenv
Revision as of 20:20, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <<fenv.h>>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int feraiseexcept( int excepts );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C99) </td> </tr> Template:ddcl list end

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.

Contents

Parameters

excepts - bitmask listing the exception flags to raise

Return value

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

Example

See also

Template:c/numeric/fenv/dcl list feclearexceptTemplate:c/numeric/fenv/dcl list fetestexcept
C++ documentation for feraiseexcept