Tests for finite value.
#include <math.h>
int isfinite (x)
real-floating x;
The isfinite macro determines whether its argument has a finite value (zero, subnormal, or normal, and not infinite or NaN). An argument represented in a format wider than its semantic type is converted to its semantic type. Determination is based on the type of the argument.
Item | Description |
---|---|
x | Specifies the value to be tested. |
The isfinite macro returns a nonzero value if its argument has a finite value.