1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH FINITE 3 2021-03-22 "" "Linux Programmer's Manual"
7 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \-
8 BSD floating-point classification functions
11 .RI ( libm ", " \-lm )
16 .BI "int finite(double " x );
17 .BI "int finitef(float " x );
18 .BI "int finitel(long double " x );
20 .BI "int isinf(double " x );
21 .BI "int isinff(float " x );
22 .BI "int isinfl(long double " x );
24 .BI "int isnan(double " x );
25 .BI "int isnanf(float " x );
26 .BI "int isnanl(long double " x );
30 Feature Test Macro Requirements for glibc (see
31 .BR feature_test_macros (7)):
38 /* Glibc since 2.19: */ _DEFAULT_SOURCE
39 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
42 _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE
43 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
44 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
50 /* Glibc since 2.19: */ _DEFAULT_SOURCE
51 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
56 _XOPEN_SOURCE || _ISOC99_SOURCE
57 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
58 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
65 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
66 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
74 functions return a nonzero value if
77 nor a "not-a-number" (NaN) value, and 0 otherwise.
84 functions return a nonzero value if
96 is positive infinity, \-1 if
98 is negative infinity, and 0 otherwise.
100 For an explanation of the terms used in this section, see
108 Interface Attribute Value
119 T} Thread safety MT-Safe
125 Note that these functions are obsolete.
131 (for all types) replacing them.
132 Further note that the C99
134 has weaker guarantees on the return value.
138 .\" finite* not on HP-UX; they exist on Tru64.
142 .\" function occurs in 4.3BSD.
143 .\" see IEEE.3 in the 4.3BSD manual