Namespaces
Variants
Views
Actions

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

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|isnormal}}
 
{{cpp/title|isnormal}}
 
{{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 isnormal( float arg );
 
bool isnormal( float arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
bool isnormal( double arg );
 
bool isnormal( double arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
bool isnormal( long double arg );
 
bool isnormal( long double arg );
 
}}
 
}}
{{ddcl list end}}
+
{{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===
{{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 isnan}}
+
{{dsc inc | cpp/numeric/math/dcl list isnan}}
{{dcl list end}}
+
{{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

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 isnan