finite.3m (2010 09)
f
finite(3M) finite(3M)
(HP Integrity Server Only)
NAME
finite(), finitef(), finitel(), finitew(), finiteq() - finiteness functions
SYNOPSIS
#include <math.h>
int finite(double
x);
int finitef(float
x);
int finitel(long double x);
int finitew(extended
x);
int finiteq(quad x);
DESCRIPTION
The finite() function determines whether its argument has a finite value (zero, subnormal, or normal,
and not infinite or NaN).
These functions are superseded by the standard
isfinite
macro. They are provided in HP-UX to facil-
itate importing code from other platform.
finitef() is a float version of finite(); it takes a float argument.
finitel() is a long double version of finite(); it takes a long double argument.
finitew() is an extended version of finite(); it takes an extended argument.
finiteq() is equivalent to finitel() on HP-UX systems.
USAGE
To use these functions, compile either with the default
-Ae option or with the
-Aa and
-D_HPUX_SOURCE options.
To use
finitew() or finiteq(), compile also with the -fpwidetypes option.
Make sure your program includes
<math.h>. Link in the math library by specifying -lm on the com-
piler or linker command line.
For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site:
http://www.hp.com/go/fp
.
RETURN VALUE
finite() returns a nonzero value if and only if its argument has a finite value.
ERRORS
No errors are defined.
SEE ALSO
fpclassify(3M) isfinite(3M), isinf(3M), isnan(3M), isnormal(3M), signbit(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any current standard.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1