FINITE(3) Library Functions Manual FINITE(3)

finitereturns 1 for finite x, 0 for infinite x and NaNs.

#include <math.h>

int
finite(double x);

The () function returns 1 if -infinity < x < +infinity. It returns 0 if x is ±infinity or a NaN.

December 11, 2006 Mac OS X 12