##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# fpclassify

From cppreference.com
< c‎ | numeric‎ | math

Defined in header `<math.h>` |  |
#define fpclassify(arg) /* implementation defined */ |  | (since C99)

Categorizes floating point value `arg` into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category. The macro returns an integral value.

### [edit] Parameters

arg | - | floating point value

### [edit] Return value

One of FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL, FP_ZERO or implementation-defined type, specifying the category of `arg`.

### [edit] See also

isfinite (C99) | checks if the given number has finite value (function) [edit]
isinf (C99) | checks if the given number is infinite (function) [edit]
isnan (C99) | checks if the given number is NaN (function) [edit]
isnormal (C99) | checks if the given number is normal (function) [edit]
C++ documentation for fpclassify

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/math/fpclassify&oldid=62582"