Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | math
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}}
{{ddcl list begin}}
+
{{dcl begin}}
{{ddcl list header | cmath}}
+
{{dcl header | cmath}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
int fpclassify( float arg );
 
int fpclassify( float arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
int fpclassify( double arg );
 
int fpclassify( double arg );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{dcl | notes={{mark since c++11}} |
 
int fpclassify( long double arg );
 
int fpclassify( long double arg );
 
}}
 
}}
{{ddcl list end}}
+
{{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===
{{param list begin}}
+
{{par begin}}
{{param list item | arg | floating point value}}
+
{{par | arg | floating point value}}
{{param list end}}
+
{{par end}}
  
 
===Return value===
 
===Return value===
  
one of {{c|FP_INFINITE}}, {{c|FP_NAN}}, {{c|FP_NORMAL}}, {{c|FP_SUBNORMAL}}, {{c|FP_ZERO}} or implementation-defined type, specifying the category of {{tt|arg}}.
+
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===
  
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list template | cpp/numeric/math/dcl list isfinite}}
+
{{dsc inc | cpp/numeric/math/dcl list isfinite}}
{{dcl list template | cpp/numeric/math/dcl list isinf}}
+
{{dsc inc | cpp/numeric/math/dcl list isinf}}
{{dcl list template | cpp/numeric/math/dcl list isnan}}
+
{{dsc inc | cpp/numeric/math/dcl list isnan}}
{{dcl list template | cpp/numeric/math/dcl list isnormal}}
+
{{dsc inc | cpp/numeric/math/dcl list isnormal}}
{{dcl list template | cpp/types/dcl list numeric_limits}}
+
{{dsc inc | cpp/types/dcl list numeric_limits}}
{{dcl list end}}
+
{{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

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]