OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[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)