# finite(3) [netbsd man page]

FINITE(3) BSD Library Functions Manual FINITE(3)NAME

finite, finiteftests for finite values--LIBRARY

Math Library (libm, -lm)SYNOPSIS

#include <math.h> int finite(double x); int finitef(float x);DESCRIPTION

The finite() function returns the value 1 when< x < +infinity. Otherwise a zero is returned (that is, |x| = infinity or x is NaN).-infinitySEE ALSO

isfinite(3), math(3)STANDARDS

The described functions conform to IEEE Std 754-1985. Note that unlike isfinite(3), neither function is present in the ISO C-language stan- dards or in the IEEE POSIX standards.HISTORY

The finite and finitef() functions first appeared in 4.3BSD.BSD

July 28, 2011 BSD

## Check Out this Related Man Page

FINITE(3) Linux Programmer's Manual FINITE(3)NAME

finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl - BSD floating-point classification functionsSYNOPSIS

#include <math.h> int finite(double x); int finitef(float x); int finitel(long double x); int isinf(double x); int isinff(float x); int isinfl(long double x); int isnan(double x); int isnanf(float x); int isnanl(long double x); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): finite(), finitef(), finitel(): _BSD_SOURCE || _SVID_SOURCE isinf(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or ccisinff(), isinfl(): _BSD_SOURCE || _SVID_SOURCE isnan(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE; or cc-std=c99isnanf(), isnanl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600-std=c99DESCRIPTION

The finite(), finitef(), and finitel() functions return a nonzero value if x is neither infinite nor a "not-a-number" (NaN) value, and 0 otherwise. The isnan(), isnanf(), and isnanl() functions return a nonzero value if x is a NaN value, and 0 otherwise. The isinf(), isinff(), and isinfl() functions return 1 if x is positive infinity,if x is negative infinity, and 0 otherwise.-1ATTRIBUTES

Multithreading (see pthreads(7)) The finite(), finitef(), finitel(), isinf(), isinff(), isinfl(), isnan(), isnanf(), and isnanl() functions are thread-safe.NOTES

Note that these functions are obsolete. C99 defines macros isfinite(), isinf(), and isnan() (for all types) replacing them. Further note that the C99 isinf() has weaker guarantees on the return value. See fpclassify(3).SEE ALSO

fpclassify(3)COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2013-07-22 FINITE(3)