| FINITE(3) | Library Functions Manual | FINITE(3) |
finite, finitef
— tests for finite values
Math Library (libm, -lm)
#include
<math.h>
int
finite(double
x);
int
finitef(float
x);
The
finite()
function returns the value 1 when
Otherwise a zero is returned (that is, |x| = infinity or x is NaN).
The described functions conform to IEEE Std
754-1985. Note that unlike
isfinite(3), neither
function is present in the ISO C-language standards
or in the IEEE POSIX
standards.
The finite and
finitef() functions first appeared in
4.3BSD.
| July 28, 2011 | NetBSD 11.0 |