Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/isnan"

From cppreference.com
< cpp‎ | numeric‎ | math
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|isnan}}
 
{{cpp/title|isnan}}
 
{{cpp/numeric/math/navbar}}
 
{{cpp/numeric/math/navbar}}
{{ddcl list begin}}
+
{{dcl begin}}
{{ddcl list header | cmath}}
+
{{dcl header | cmath}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
bool isnan( float arg );
 
bool isnan( float arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
bool isnan( double arg );
 
bool isnan( double arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
bool isnan( long double arg );
 
bool isnan( long double arg );
 
}}
 
}}
{{ddcl list end}}
+
{{dcl end}}
  
 
Determines if the given floating point number {{tt|arg}} is not-a-number ({{tt|NaN}}).
 
Determines if the given floating point number {{tt|arg}} is not-a-number ({{tt|NaN}}).
  
 
===Parameters===
 
===Parameters===
{{param list begin}}
+
{{par begin}}
{{param list item | arg | floating point value}}
+
{{par | arg | floating point value}}
{{param list end}}
+
{{par end}}
  
 
===Return value===
 
===Return value===
Line 27: Line 27:
 
===See also===
 
===See also===
  
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list template | cpp/numeric/math/dcl list fpclassify}}
+
{{dsc inc | cpp/numeric/math/dcl list fpclassify}}
{{dcl list template | cpp/numeric/math/dcl list isfinite}}
+
{{dsc inc | cpp/numeric/math/dcl list isfinite}}
{{dcl list template | cpp/numeric/math/dcl list isinf}}
+
{{dsc inc | cpp/numeric/math/dcl list isinf}}
{{dcl list template | cpp/numeric/math/dcl list isnormal}}
+
{{dsc inc | cpp/numeric/math/dcl list isnormal}}
{{dcl list template | cpp/numeric/math/dcl list isunordered}}
+
{{dsc inc | cpp/numeric/math/dcl list isunordered}}
{{dcl list end}}
+
{{dsc end}}
  
 
[[de:cpp/numeric/math/isnan]]
 
[[de:cpp/numeric/math/isnan]]

Revision as of 19:20, 31 May 2013

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

Determines if the given floating point number arg is not-a-number (NaN).

Parameters

arg - floating point value

Return value

true if arg is NaN, false otherwise

See also

Template:cpp/numeric/math/dcl list fpclassifyTemplate:cpp/numeric/math/dcl list isfiniteTemplate:cpp/numeric/math/dcl list isinfTemplate:cpp/numeric/math/dcl list isnormalTemplate:cpp/numeric/math/dcl list isunordered