OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
30 INFINITY, NAN, HUGE_VAL, HUGE_VALF, HUGE_VALL \- 浮動小数点数の定数
31 .SH 書式
32 .nf
33 .BR "#define _ISOC99_SOURCE" "      /* feature_test_macros(7) 参照 */"
34 .br
35 .B #include <math.h>
36 .sp
37 .B INFINITY
38 .sp
39 .B NAN
40 .sp
41 .B HUGE_VAL
42 .br
43 .B HUGE_VALF
44 .br
45 .B HUGE_VALL
46 .fi
47 .SH 説明
48 マクロ
49 .B INFINITY
50 は正の無限大を表す
51 \fIfloat\fP 型の定数に展開される。
52
53 (サポートされている場合) マクロ
54 .B NAN
55 は quiet NaN を表す \fIfloat\fP 型の定数に展開される。
56 .I quiet
57 NaN は計算式の中で使われたときに例外を起こさない
58 NaN ("not-a-number") である。
59 この反対は
60 .I signalling
61 NaN である。
62 IEC 60559:1989 を参照すること。
63
64 マクロ
65 .BR HUGE_VAL ,
66 .BR HUGE_VALF ,
67 .B HUGE_VALL
68 はそれぞれ \fIdouble\fP, \fIfloat\fP, \fIlong double\fP 型の定数で、
69 大きな正の値を表し、可能な場合には正の無限大を表す。
70 .SH 準拠
71 C99.
72 .SH 可用性
73 glibc システムではマクロ
74 .B HUGE_VAL
75 が常に使用可能である。
76 .B NAN
77 マクロが使用できるかは、
78 .B "#ifdef NAN"
79 を使ってテストできる。
80 .BR INFINITY ,
81 .BR HUGE_VALF ,
82 .B HUGE_VALL
83 も同様である。
84 .B _ISOC99_SOURCE
85
86 .B _GNU_SOURCE
87 が定義されている場合、
88 または
89 .B __STDC_VERSION__
90 が定義されていて、その値が 199901L 以上である場合、
91 これらのマクロは
92 .I <math.h>
93 で定義される。
94 .SH 関連項目
95 .BR fpclassify (3),
96 .BR math_error (7)