Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Language Environment |
both |
OS/390 V2R6 |
#define _AIX_COMPATIBILITY
#include <math.h>
int finite(x)
double x;
finite() returns nonzero if the x parameter is a finite number, that is, if x is not +-, INF, NaNQ, or NaNS.
finite() does not return errors or set bits in the floating-point exception status, even if a parameter is a NaNS.
Special behavior for hex: finite() always returns 1 when it is called from HFP mode.