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 2016-03-15 "" "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 );
35 .BI "int finitef(float " x );
37 .BI "int finitel(long double " x );
39 .BI "int isinf(double " x );
41 .BI "int isinff(float " x );
43 .BI "int isinfl(long double " x );
45 .BI "int isnan(double " x );
47 .BI "int isnanf(float " x );
49 .BI "int isnanl(long double " x );
53 Feature Test Macro Requirements for glibc (see
54 .BR feature_test_macros (7)):
62 /* Glibc since 2.19: */ _DEFAULT_SOURCE
63 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
67 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
68 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
69 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
75 /* Glibc since 2.19: */ _DEFAULT_SOURCE
76 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
80 _XOPEN_SOURCE || _ISOC99_SOURCE
81 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
82 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
87 _XOPEN_SOURCE\ >=\ 600
88 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
89 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
98 functions return a nonzero value if
101 nor a "not-a-number" (NaN) value, and 0 otherwise.
108 functions return a nonzero value if
118 functions return 1 if
120 is positive infinity, \-1 if
122 is negative infinity, and 0 otherwise.
124 For an explanation of the terms used in this section, see
130 Interface Attribute Value
143 T} Thread safety MT-Safe
146 Note that these functions are obsolete.
152 (for all types) replacing them.
153 Further note that the C99
155 has weaker guarantees on the return value.
159 .\" finite* not on HP-UX; they exist on Tru64.
163 .\" function occurs in 4.3BSD.
164 .\" see IEEE.3 in the 4.3BSD manual