std::isnormal - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::isnormal

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

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

Determines if the given floating point number `arg` is normal, i.e. is neither zero, subnormal, infinite, nor `NaN`.

### [edit] Parameters

arg | - | floating point value

### [edit] Return value

true if `arg` is normal, false otherwise

### [edit] See also

fpclassify (C++11) | categorizes the given floating point value (function) [edit]
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]
C documentation for isnormal

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