A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../numeric/fenv/feraiseexcept.html below:

std::feraiseexcept - cppreference.com

int feraiseexcept( int excepts );

(since C++11)

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

Output:

Raising divbyzero and underflow simultaneously succeeds and results in
division by zero
underflow
[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4