std::fpclassify
From cppreference.com
Template:cpp/numeric/math/sidebar 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 >int fpclassify( float arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >int fpclassify( double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >int fpclassify( long double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Categorizes floating point value arg
into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category.
Parameters
arg | - | floating point value |
Return value
one of Template:cpp, Template:cpp, Template:cpp, Template:cpp, Template:cpp or implementation-defined type, specifying the category of arg
.