Difference between revisions of "cpp/numeric/math/isnormal"
From cppreference.com
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}} | | ||
− | + | bool isnormal( float arg ); | |
}} | }} | ||
{{ddcl list item | notes={{mark since c++11}} | | {{ddcl list item | notes={{mark since c++11}} | | ||
− | + | bool isnormal( double arg ); | |
}} | }} | ||
{{ddcl list item | notes={{mark since c++11}} | | {{ddcl list item | notes={{mark since c++11}} | | ||
− | + | bool isnormal( long double arg ); | |
}} | }} | ||
{{ddcl list end}} | {{ddcl list end}} | ||
Line 23: | Line 23: | ||
===Return value=== | ===Return value=== | ||
− | + | {{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
</td>
<cmath>
<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