finite

Name

finite -- test for infinity (DEPRECATED)

Synopsis

#define _SVID_SOURCE
#include <math.h>

int finite(double arg);

Description

The finite() function shall test whether its argument is neither INFINITY nor not a number (NaN).

Returns

On success, finite() shall return 1. Otherwise the function shall return 0.

Note: The ISO C (1999) standard defines the function isfinite(), which is more general purpose. The finite() function is deprecated, and applications should use isfinite() instead. A future revision of this standard may remove this function.

See Also

isfinite(), finitef(), finitel()