Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | math
m (Text replace - "/sidebar" to "/navbar")
(fix return type (int in C, bool in C++))
Line 4: Line 4:
 
{{ddcl list header | cmath}}
 
{{ddcl list header | cmath}}
 
{{ddcl list item | notes={{mark since c++11}} |
 
{{ddcl list item | notes={{mark since c++11}} |
int isnormal( float arg );
+
bool isnormal( float arg );
 
}}
 
}}
 
{{ddcl list item | notes={{mark since c++11}} |
 
{{ddcl list item | notes={{mark since c++11}} |
int isnormal( double arg );
+
bool isnormal( double arg );
 
}}
 
}}
 
{{ddcl list item | notes={{mark since c++11}} |
 
{{ddcl list item | notes={{mark since c++11}} |
int isnormal( long double arg );
+
bool isnormal( long double arg );
 
}}
 
}}
 
{{ddcl list end}}
 
{{ddcl list end}}
Line 23: Line 23:
 
===Return value===
 
===Return value===
  
nonzero value if {{tt|arg}} is normal, {{c|0}} otherwise
+
{{c|true}} if {{tt|arg}} is normal, {{c|false}} otherwise
  
 
===See also===
 
===See also===

Revision as of 05:07, 6 August 2012

 
 
 
 

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
bool isnormal( float arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool isnormal( double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool isnormal( long double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

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