1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI
24 .\" all rights reserved.
25 .\" Translated 2005-02-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
26 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"WORD: classification 分類
30 .\"WORD: not-a-number 無効値
33 .TH FINITE 3 2008-08-05 "" "Linux Programmer's Manual"
36 .\"O finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \-
37 .\"O BSD floating-point classification functions
38 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \-
45 .BI "int finite(double " x );
47 .BI "int finitef(float " x );
49 .BI "int finitel(long double " x );
51 .BI "int isinf(double " x );
53 .BI "int isinff(float " x );
55 .BI "int isinfl(long double " x );
57 .BI "int isnan(double " x );
59 .BI "int isnanf(float " x );
61 .BI "int isnanl(long double " x );
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
68 .RB ( feature_test_macros (7)
77 _BSD_SOURCE || _SVID_SOURCE
81 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
90 _BSD_SOURCE || _SVID_SOURCE
94 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
102 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
109 .\"O functions return a nonzero value if \fIx\fP is neither infinite
110 .\"O nor a "not-a-number" (NaN) value, and 0 otherwise.
112 関数は、 \fIx\fP が無限大や無効値 (NaN) のいずれでもない
113 場合に 0 以外の値を返し、それ以外の場合は 0 を返す。
117 .\"O functions return a nonzero value if \fIx\fP is a NaN value,
118 .\"O and 0 otherwise.
120 関数は、 \fIx\fP が NaN の場合 0 以外の値を返し、
125 .\"O functions return 1 if \fIx\fP is positive infinity, \-1 if \fIx\fP
126 .\"O is negative infinity, and 0 otherwise.
128 関数は、 \fIx\fP が正の無限大であれば 1 を返し、\fIx\fP が負の無限大で
129 あれば \-1 を返す。それ以外の場合は 0 を返す。
132 .\"O Note that these functions are obsolete.
133 .\"O C99 defines macros
134 .\"O .BR isfinite (),
138 .\"O (for all types) replacing them.
139 .\"O Further note that the C99
141 .\"O has weaker guarantees on the return value.
143 .\"O .BR fpclassify (3).
145 .\"O .\" finite* not on HP-UX; they exist on Tru64.
146 これらの関数は廃止された点に注意すること。
147 C99 では、これらの置き換えとして (どんな型にも適用できる)
154 は返り値に関して弱い意味での保証しかないことにも
159 .\" finite* not on HP-UX; they exist on Tru64.
163 .\"O .\" .BR finite ()
164 .\"O .\" function occurs in 4.3BSD.
165 .\"O .\" see IEEE.3 in the 4.3BSD manual
167 .\" 関数は 4.3BSD で登場した。
168 .\" 4.3BSD のマニュアルの IEEE.3 を参照