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 2013-07-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 );
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 _BSD_SOURCE || _SVID_SOURCE
66 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
75 _BSD_SOURCE || _SVID_SOURCE
79 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
87 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
96 functions return a nonzero value if
99 nor a "not-a-number" (NaN) value, and 0 otherwise.
106 functions return a nonzero value if
116 functions return 1 if
118 is positive infinity, \-1 if
120 is negative infinity, and 0 otherwise.
122 .SS Multithreading (see pthreads(7))
134 functions are thread-safe.
136 Note that these functions are obsolete.
142 (for all types) replacing them.
143 Further note that the C99
145 has weaker guarantees on the return value.
149 .\" finite* not on HP-UX; they exist on Tru64.
153 .\" function occurs in 4.3BSD.
154 .\" see IEEE.3 in the 4.3BSD manual
158 This page is part of release 3.65 of the Linux
161 A description of the project,
162 and information about reporting bugs,
164 \%http://www.kernel.org/doc/man\-pages/.