Difference between revisions of "cpp/numeric/math/isnormal"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 1: | Line 1: | ||
{{cpp/title|isnormal}} | {{cpp/title|isnormal}} | ||
{{cpp/numeric/math/navbar}} | {{cpp/numeric/math/navbar}} | ||
− | {{ | + | {{dcl begin}} |
− | {{ | + | {{dcl header | cmath}} |
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
bool isnormal( float arg ); | bool isnormal( float arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
bool isnormal( double arg ); | bool isnormal( double arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
bool isnormal( long double arg ); | bool isnormal( long double arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl end}} |
Determines if the given floating point number {{tt|arg}} is normal, i.e. is neither zero, subnormal, infinite, nor {{tt|NaN}}. | Determines if the given floating point number {{tt|arg}} is normal, i.e. is neither zero, subnormal, infinite, nor {{tt|NaN}}. | ||
===Parameters=== | ===Parameters=== | ||
− | {{ | + | {{par begin}} |
− | {{ | + | {{par | arg | floating point value}} |
− | {{ | + | {{par end}} |
===Return value=== | ===Return value=== | ||
Line 27: | Line 27: | ||
===See also=== | ===See also=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list fpclassify}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isfinite}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isinf}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isnan}} |
− | {{ | + | {{dsc end}} |
[[de:cpp/numeric/math/isnormal]] | [[de:cpp/numeric/math/isnormal]] |
Revision as of 19:20, 31 May 2013
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
.
Parameters
arg | - | floating point value |
Return value
true if arg
is normal, false otherwise