Everything

feraiseexcept


Attempts to generate a floating-point exception.

[Format]

#include <fenv.h>

long feraiseexcept(long e);

[Parameters]

e Value indicating the exception to be generated

[Return values]

Normal: 0

Abnormal: Nonzero

[Remarks]

When generating an "overflow" or "underflow" floating-point exception, whether the feraiseexcept function also generates an "inexact" floating-point exception is implementation-defined.

Do not use this function when compiler option nofpu is selected. If used, the function returns a nonzero value, which indicates an abnormality.