1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH FINITE 3 2021-03-22 "" "Linux Programmer's Manual"
27 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \-
28 BSD floating-point classification functions
33 .BI "int finite(double " x );
34 .BI "int finitef(float " x );
35 .BI "int finitel(long double " x );
37 .BI "int isinf(double " x );
38 .BI "int isinff(float " x );
39 .BI "int isinfl(long double " x );
41 .BI "int isnan(double " x );
42 .BI "int isnanf(float " x );
43 .BI "int isnanl(long double " x );
47 Feature Test Macro Requirements for glibc (see
48 .BR feature_test_macros (7)):
55 /* Glibc since 2.19: */ _DEFAULT_SOURCE
56 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
59 _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE
60 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
61 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
67 /* Glibc since 2.19: */ _DEFAULT_SOURCE
68 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
73 _XOPEN_SOURCE || _ISOC99_SOURCE
74 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
75 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
82 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
83 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
91 functions return a nonzero value if
94 nor a "not-a-number" (NaN) value, and 0 otherwise.
101 functions return a nonzero value if
111 functions return 1 if
113 is positive infinity, \-1 if
115 is negative infinity, and 0 otherwise.
117 For an explanation of the terms used in this section, see
125 Interface Attribute Value
136 T} Thread safety MT-Safe
142 Note that these functions are obsolete.
148 (for all types) replacing them.
149 Further note that the C99
151 has weaker guarantees on the return value.
155 .\" finite* not on HP-UX; they exist on Tru64.
159 .\" function occurs in 4.3BSD.
160 .\" see IEEE.3 in the 4.3BSD manual