finite(3M)
NAME
finite(), finitef() − finite functions
SYNOPSIS
#include <math.h>
int finite(double x);
int finitef(float x);
DESCRIPTION
The finite() function is recommended by the IEEE-754 standard for floating-point arithmetic.
finite() returns 1 only when −INFINITY < x < +INFINITY. Otherwise, it returns 0 (that is, when x is ±INFINITY or x is NaN).
finitef() is a float version of finite(); it takes a float argument. To use this function, compile either with the −Ae option or with the −Aa and −D_HPUX_SOURCE options. Otherwise, the compiler promotes the float argument to double, and the function returns incorrect results.
finitef() is not specified by any standard, but it is named in accordance with the conventions specified in the "Future Library Directions" section of the ANSI C standard.
To use these functions, link in the math library by specifying −lm on the compiler or linker command line.
ERRORS
No errors are defined.
SEE ALSO
fpclassify(3M), isinf(3M), isnan(3M), remainder(3M), scalb(3M).
Hewlett-Packard Company — HP-UX Release 10.20: July 1996