Classifies real floating type.
#include <math.h>
int fpclassify(x)
real-floating x;
The fpclassify macro classifies the x parameter as NaN, infinite, normal, subnormal, zero, or into another implementation-defined category. An argument represented in a format wider than its semantic type is converted to its semantic type. Classification is based on the type of the argument.
Item | Description |
---|---|
x | Specifies the value to be classified. |
The fpclassify macro returns the value of the number classification macro appropriate to the value of its argument.