OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / INFINITY.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 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Thu Jan 27 00:33:04 JST 2005
26 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
27 .\"
28 .TH INFINITY 3  2007-07-26 "" "Linux Programmer's Manual"
29 .\"O .SH NAME
30 .SH 名前
31 .\"O INFINITY, NAN, HUGE_VAL, HUGE_VALF, HUGE_VALL \- floating-point constants
32 INFINITY, NAN, HUGE_VAL, HUGE_VALF, HUGE_VALL \- 浮動小数点数の定数
33 .\"O .SH SYNOPSIS
34 .SH 書式
35 .nf
36 .\"O .BR "#define _ISOC99_SOURCE" "      /* See feature_test_macros(7) */"
37 .BR "#define _ISOC99_SOURCE" "      /* feature_test_macros(7) 参照 */"
38 .br
39 .B #include <math.h>
40 .sp
41 .B INFINITY
42 .sp
43 .B NAN
44 .sp
45 .B HUGE_VAL
46 .br
47 .B HUGE_VALF
48 .br
49 .B HUGE_VALL
50 .fi
51 .\"O .SH DESCRIPTION
52 .SH 説明
53 .\"O The macro
54 .\"O .B INFINITY
55 .\"O expands to a \fIfloat\fP constant representing positive infinity.
56 マクロ
57 .B INFINITY
58 は正の無限大を表す
59 \fIfloat\fP 型の定数に展開される。
60
61 .\"O The macro
62 .\"O .B NAN
63 .\"O expands to a \fIfloat\fP constant representing a quiet NaN
64 .\"O (when supported).
65 .\"O A
66 .\"O .I quiet
67 .\"O NaN is a NaN ("not-a-number") that does not raise exceptions
68 .\"O when it is used in arithmetic.
69 .\"O The opposite is a
70 .\"O .I signaling
71 .\"O NaN.
72 .\"O See IEC 60559:1989.
73 (サポートされている場合) マクロ
74 .B NAN
75 は quiet NaN を表す \fIfloat\fP 型の定数に展開される。
76 .I quiet
77 NaN は計算式の中で使われたときに例外を起こさない
78 NaN ("not-a-number") である。
79 この反対は
80 .I signalling
81 NaN である。
82 IEC 60559:1989 を参照すること。
83
84 .\"O The macros
85 .\"O .BR HUGE_VAL ,
86 .\"O .BR HUGE_VALF ,
87 .\"O .B HUGE_VALL
88 .\"O expand to constants of types \fIdouble\fP, \fIfloat\fP
89 .\"O and \fIlong double\fP, respectively,
90 .\"O that represent a large positive value, possibly plus infinity.
91 マクロ
92 .BR HUGE_VAL ,
93 .BR HUGE_VALF ,
94 .B HUGE_VALL
95 はそれぞれ \fIdouble\fP, \fIfloat\fP, \fIlong double\fP 型の定数で、
96 大きな正の値を表し、可能な場合には正の無限大を表す。
97 .\"O .SH "CONFORMING TO"
98 .SH 準拠
99 C99.
100 .\"O .SH AVAILABILITY
101 .SH 可用性
102 .\"O On a glibc system, the macro
103 .\"O .B HUGE_VAL
104 .\"O is always available.
105 .\"O Availability of the
106 .\"O .B NAN
107 .\"O macro can be tested using
108 .\"O .BR "#ifdef NAN" ,
109 .\"O and similarly for
110 .\"O .BR INFINITY ,
111 .\"O .BR HUGE_VALF ,
112 .\"O .BR HUGE_VALL .
113 glibc システムではマクロ
114 .B HUGE_VAL
115 が常に使用可能である。
116 .B NAN
117 マクロが使用できるかは、
118 .B "#ifdef NAN"
119 を使ってテストできる。
120 .BR INFINITY ,
121 .BR HUGE_VALF ,
122 .B HUGE_VALL
123 も同様である。
124 .\"O They will be defined by
125 .\"O .I <math.h>
126 .\"O if
127 .\"O .B _ISOC99_SOURCE
128 .\"O or
129 .\"O .B _GNU_SOURCE
130 .\"O is defined, or
131 .\"O .B __STDC_VERSION__
132 .\"O is defined
133 .\"O and has a value not less than 199901L.
134 .B _ISOC99_SOURCE
135
136 .B _GNU_SOURCE
137 が定義されている場合、
138 または
139 .B __STDC_VERSION__
140 が定義されていて、その値が 199901L 以上である場合、
141 これらのマクロは
142 .I <math.h>
143 で定義される。
144 .\"O .SH "SEE ALSO"
145 .SH 関連項目
146 .BR fpclassify (3),
147 .BR math_error (7)