std::fpclassify

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

int fpclassify( float arg );
(C++11 feature)
int fpclassify( double arg );
(C++11 feature)
int fpclassify( long double arg );
(C++11 feature)

Categorizes floating point value arg into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category.

[edit] Parameters

arg - floating point value

[edit] Return value

one of FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL, FP_ZERO or implementation-defined type, specifying the category of arg.

[edit] See also

isfinite (C++11)
checks if the given number has finite value
(function)
isinf (C++11)
checks if the given number is infinite
(function)
isnan (C++11)
checks if the given number is NaN
(function)
isnormal (C++11)
checks if the given number is normal
(function)