OSDN Git Service

(split) LDP: draft snapshot generated from latest pthread/ja.po files.
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
35 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \-
36 BSD の浮動小数点分類関数
37 .SH 書式
38 .nf
39 .B #include <math.h>
40 .sp
41 .BI "int finite(double " x );
42 .br
43 .BI "int finitef(float " x );
44 .br
45 .BI "int finitel(long double " x );
46 .sp
47 .BI "int isinf(double " x );
48 .br
49 .BI "int isinff(float " x );
50 .br
51 .BI "int isinfl(long double " x );
52 .sp
53 .BI "int isnan(double " x );
54 .br
55 .BI "int isnanf(float " x );
56 .br
57 .BI "int isnanl(long double " x );
58 .fi
59 .sp
60 .in -4n
61 glibc 向けの機能検査マクロの要件
62 .RB ( feature_test_macros (7)
63 参照):
64 .in
65 .sp
66 .ad l
67 .BR finite (),
68 .BR finitef (),
69 .BR finitel ():
70 .RS 4
71 _BSD_SOURCE || _SVID_SOURCE
72 .RE
73 .BR isinf ():
74 .RS 4
75 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
76 .br
77 or
78 .I cc\ -std=c99
79 .RE
80 .br
81 .BR isinff (),
82 .BR isinfl ():
83 .RS 4
84 _BSD_SOURCE || _SVID_SOURCE
85 .RE
86 .BR isnan ():
87 .RS 4
88 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
89 .br
90 or
91 .I cc\ -std=c99
92 .RE
93 .BR isnanf (),
94 .BR isnanl ():
95 .RS 4
96 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
97 .RE
98 .ad b
99 .SH 説明
100 .BR finite ()
101 関数は、 \fIx\fP が無限大や無効値 (NaN) のいずれでもない
102 場合に 0 以外の値を返し、それ以外の場合は 0 を返す。
103
104 .BR isnan ()
105 関数は、 \fIx\fP が NaN の場合 0 以外の値を返し、
106 それ以外の場合は 0 を返す。
107
108 .BR isinf ()
109 関数は、 \fIx\fP が正の無限大であれば 1 を返し、\fIx\fP が負の無限大で
110 あれば \-1 を返す。それ以外の場合は 0 を返す。
111 .SH 注意
112 これらの関数は廃止された点に注意すること。
113 C99 では、これらの置き換えとして (どんな型にも適用できる)
114 .BR isfinite (),
115 .BR isinf (),
116 .BR isnan ()
117 というマクロが定義されている。
118 さらに C99 の
119 .BR isinf ()
120 は返り値に関して弱い意味での保証しかないことにも
121 注意すること。詳細は
122 .BR fpclassify (3)
123 を参照。
124 .\"
125 .\" finite* not on HP-UX; they exist on Tru64.
126 .\" .SH 歴史
127 .\" .BR finite ()
128 .\" 関数は 4.3BSD で登場した。
129 .\" 4.3BSD のマニュアルの IEEE.3 を参照
130 .SH 関連項目
131 .BR fpclassify (3)