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 .\"*******************************************************************
27 .\" This file was generated with po4a. Translate the source file.
29 .\"*******************************************************************
30 .TH FINITE 3 2013\-07\-22 "" "Linux Programmer's Manual"
32 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- BSD
36 \fB#include <math.h>\fP
38 \fBint finite(double \fP\fIx\fP\fB);\fP
40 \fBint finitef(float \fP\fIx\fP\fB);\fP
42 \fBint finitel(long double \fP\fIx\fP\fB);\fP
44 \fBint isinf(double \fP\fIx\fP\fB);\fP
46 \fBint isinff(float \fP\fIx\fP\fB);\fP
48 \fBint isinfl(long double \fP\fIx\fP\fB);\fP
50 \fBint isnan(double \fP\fIx\fP\fB);\fP
52 \fBint isnanf(float \fP\fIx\fP\fB);\fP
54 \fBint isnanl(long double \fP\fIx\fP\fB);\fP
58 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
62 \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP():
64 _BSD_SOURCE || _SVID_SOURCE
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
70 or \fIcc\ \-std=c99\fP
73 \fBisinff\fP(), \fBisinfl\fP():
75 _BSD_SOURCE || _SVID_SOURCE
79 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
81 or \fIcc\ \-std=c99\fP
83 \fBisnanf\fP(), \fBisnanl\fP():
85 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
89 The \fBfinite\fP(), \fBfinitef\fP(), and \fBfinitel\fP() functions return a nonzero
90 value if \fIx\fP is neither infinite nor a "not\-a\-number" (NaN) value, and 0
93 The \fBisnan\fP(), \fBisnanf\fP(), and \fBisnanl\fP() functions return a nonzero
94 value if \fIx\fP is a NaN value, and 0 otherwise.
96 The \fBisinf\fP(), \fBisinff\fP(), and \fBisinfl\fP() functions return 1 if \fIx\fP is
97 positive infinity, \-1 if \fIx\fP is negative infinity, and 0 otherwise.
99 .SS "マルチスレッディング (pthreads(7) 参照)"
100 The \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP(), \fBisinf\fP(), \fBisinff\fP(),
101 \fBisinfl\fP(), \fBisnan\fP(), \fBisnanf\fP(), and \fBisnanl\fP() functions are
105 .\" finite* not on HP-UX; they exist on Tru64.
109 .\" function occurs in 4.3BSD.
110 .\" see IEEE.3 in the 4.3BSD manual
111 これらの関数は廃止された点に注意すること。 C99 では、これらの置き換えとして (どんな型にも適用できる) \fBisfinite\fP(),
112 \fBisinf\fP(), \fBisnan\fP() というマクロが定義されている。 さらに C99 の \fBisinf\fP()
113 は返り値に関して弱い意味での保証しかないことにも 注意すること。詳細は \fBfpclassify\fP(3) を参照。
117 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
118 である。プロジェクトの説明とバグ報告に関する情報は
119 http://www.kernel.org/doc/man\-pages/ に書かれている。