##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::fpclassify

From cppreference.com
< cpp‎ | numeric‎ | math

Defined in header `<cmath>` |  |
int fpclassify( float arg ); |  | (since C++11)
int fpclassify( double arg ); |  | (since C++11)
int fpclassify( long double arg ); |  | (since C++11)

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) [edit]
isinf (C++11) | checks if the given number is infinite (function) [edit]
isnan (C++11) | checks if the given number is NaN (function) [edit]
isnormal (C++11) | checks if the given number is normal (function) [edit]
numeric_limits | provides an interface to query properties of all fundamental numeric types. (class template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/fpclassify&oldid=62850"