OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / finite.3
1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
2 .\"
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.
6 .\"
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.
11 .\"
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
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
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>
27 .\"
28 .\"WORD:        classification  分類
29 .\"WORD:        infinite        無限大
30 .\"WORD:        not-a-number    無効値
31 .\"WORD:        NaN     無効値
32 .\"
33 .TH FINITE 3  2008-08-05 "" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH 名前
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 \-
39 BSD の浮動小数点分類関数
40 .\"O .SH SYNOPSIS
41 .SH 書式
42 .nf
43 .B #include <math.h>
44 .sp
45 .BI "int finite(double " x );
46 .br
47 .BI "int finitef(float " x );
48 .br
49 .BI "int finitel(long double " x );
50 .sp
51 .BI "int isinf(double " x );
52 .br
53 .BI "int isinff(float " x );
54 .br
55 .BI "int isinfl(long double " x );
56 .sp
57 .BI "int isnan(double " x );
58 .br
59 .BI "int isnanf(float " x );
60 .br
61 .BI "int isnanl(long double " x );
62 .fi
63 .sp
64 .in -4n
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
67 glibc 向けの機能検査マクロの要件
68 .RB ( feature_test_macros (7)
69 参照):
70 .in
71 .sp
72 .ad l
73 .BR finite (),
74 .BR finitef (),
75 .BR finitel ():
76 .RS 4
77 _BSD_SOURCE || _SVID_SOURCE
78 .RE
79 .BR isinf ():
80 .RS 4
81 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
82 .br
83 or
84 .I cc\ -std=c99
85 .RE
86 .br
87 .BR isinff (),
88 .BR isinfl ():
89 .RS 4
90 _BSD_SOURCE || _SVID_SOURCE
91 .RE
92 .BR isnan ():
93 .RS 4
94 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
95 .br
96 or
97 .I cc\ -std=c99
98 .RE
99 .BR isnanf (),
100 .BR isnanl ():
101 .RS 4
102 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
103 .RE
104 .ad b
105 .\"O .SH DESCRIPTION
106 .SH 説明
107 .\"O The
108 .\"O .BR finite ()
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.
111 .BR finite ()
112 関数は、 \fIx\fP が無限大や無効値 (NaN) のいずれでもない
113 場合に 0 以外の値を返し、それ以外の場合は 0 を返す。
114
115 .\"O The
116 .\"O .BR isnan ()
117 .\"O functions return a nonzero value if \fIx\fP is a NaN value,
118 .\"O and 0 otherwise.
119 .BR isnan ()
120 関数は、 \fIx\fP が NaN の場合 0 以外の値を返し、
121 それ以外の場合は 0 を返す。
122
123 .\"O The
124 .\"O .BR isinf ()
125 .\"O functions return 1 if \fIx\fP is positive infinity, \-1 if \fIx\fP
126 .\"O is negative infinity, and 0 otherwise.
127 .BR isinf ()
128 関数は、 \fIx\fP が正の無限大であれば 1 を返し、\fIx\fP が負の無限大で
129 あれば \-1 を返す。それ以外の場合は 0 を返す。
130 .\"O .SH NOTES
131 .SH 注意
132 .\"O Note that these functions are obsolete.
133 .\"O C99 defines macros
134 .\"O .BR isfinite (),
135 .\"O .BR isinf (),
136 .\"O and
137 .\"O .BR isnan ()
138 .\"O (for all types) replacing them.
139 .\"O Further note that the C99
140 .\"O .BR isinf ()
141 .\"O has weaker guarantees on the return value.
142 .\"O See
143 .\"O .BR fpclassify (3).
144 .\"O .\"
145 .\"O .\" finite* not on HP-UX; they exist on Tru64.
146 これらの関数は廃止された点に注意すること。
147 C99 では、これらの置き換えとして (どんな型にも適用できる)
148 .BR isfinite (),
149 .BR isinf (),
150 .BR isnan ()
151 というマクロが定義されている。
152 さらに C99 の
153 .BR isinf ()
154 は返り値に関して弱い意味での保証しかないことにも
155 注意すること。詳細は
156 .BR fpclassify (3)
157 を参照。
158 .\"
159 .\" finite* not on HP-UX; they exist on Tru64.
160 .\"O .\" .SH HISTORY
161 .\" .SH 歴史
162 .\"O .\" The
163 .\"O .\" .BR finite ()
164 .\"O .\" function occurs in 4.3BSD.
165 .\"O .\" see IEEE.3 in the 4.3BSD manual
166 .\" .BR finite ()
167 .\" 関数は 4.3BSD で登場した。
168 .\" 4.3BSD のマニュアルの IEEE.3 を参照
169 .\"O .SH "SEE ALSO"
170 .SH 関連項目
171 .BR fpclassify (3)