OSDN Git Service

(split) LDP v3.30, v3.31 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / 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)