Difference between revisions of "cpp/numeric/math/fpclassify"
From cppreference.com
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|fpclassify}} | {{cpp/title|fpclassify}} | ||
{{cpp/numeric/math/navbar}} | {{cpp/numeric/math/navbar}} | ||
− | {{ | + | {{dcl begin}} |
− | {{ | + | {{dcl header | cmath}} |
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
int fpclassify( float arg ); | int fpclassify( float arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
int fpclassify( double arg ); | int fpclassify( double arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl | notes={{mark since c++11}} | |
int fpclassify( long double arg ); | int fpclassify( long double arg ); | ||
}} | }} | ||
− | {{ | + | {{dcl end}} |
Categorizes floating point value {{tt|arg}} into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category. | Categorizes floating point value {{tt|arg}} into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category. | ||
===Parameters=== | ===Parameters=== | ||
− | {{ | + | {{par begin}} |
− | {{ | + | {{par | arg | floating point value}} |
− | {{ | + | {{par end}} |
===Return value=== | ===Return value=== | ||
− | one of {{ | + | one of {{lc|FP_INFINITE}}, {{lc|FP_NAN}}, {{lc|FP_NORMAL}}, {{lc|FP_SUBNORMAL}}, {{lc|FP_ZERO}} or implementation-defined type, specifying the category of {{tt|arg}}. |
===See also=== | ===See also=== | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isfinite}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isinf}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isnan}} |
− | {{ | + | {{dsc inc | cpp/numeric/math/dcl list isnormal}} |
− | {{ | + | {{dsc inc | cpp/types/dcl list numeric_limits}} |
− | {{ | + | {{dsc end}} |
[[de:cpp/numeric/math/fpclassify]] | [[de:cpp/numeric/math/fpclassify]] |
Revision as of 19:20, 31 May 2013
Defined in header <cmath>
|
||
int fpclassify( float arg ); |
(since C++11) | |
int fpclassify( double arg ); |
(since C++11) | |
int fpclassify( long double arg ); |
(since C++11) | |
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 FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL, FP_ZERO or implementation-defined type, specifying the category of arg
.
See also
provides an interface to query properties of all fundamental numeric types (class template) |