7 Mart 2019 Perşembe

std::fetestexcept

Giriş
Açıklaması şöyle.
C/C++ programs can test, set, and clear the floating point exception flags using the C99 floating point environment functions .... The header file fenv.h defines five macros corresponding to the five standard exceptions: FE_INEXACT, FE_UNDERFLOW, FE_OVERFLOW, FE_DIVBYZERO, and FE_INVALID. It also defines the macro FE_ALL_EXCEPT to be the bitwise "or" of all five exception macros. These macros can be combined to test or clear any subset of the exception flags or raise any combination of exceptions.
Exception bayraklarını temizlemek için feclearexcept() kullanılır.

Hiç yorum yok:

Yorum Gönder