Namespaces
Variants
Views
Actions

std::fpclassify

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 02:14, 20 February 2012 by P12 (Talk | contribs)

Template:cpp/numeric/math/sidebar 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 >
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.

See also

Template:cpp/numeric/math/dcl list isfiniteTemplate:cpp/numeric/math/dcl list isinfTemplate:cpp/numeric/math/dcl list isnanTemplate:cpp/numeric/math/dcl list isnormal
provides an interface to query properties of all fundamental numeric types
(class template) [edit]