1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
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>
28 .\"WORD: classification ʬÎà
29 .\"WORD: infinite ̵¸ÂÂç
30 .\"WORD: not-a-number ̵¸úÃÍ
33 .TH FINITE 3 2008-08-05 "" "Linux Programmer's Manual"
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 ¤ÎÉâÆ°¾®¿ôÅÀʬÎà´Ø¿ô
45 .BI "int finite(double " x );
47 .BI "int finitef(float " x );
49 .BI "int finitel(long double " x );
51 .BI "int isinf(double " x );
53 .BI "int isinff(float " x );
55 .BI "int isinfl(long double " x );
57 .BI "int isnan(double " x );
59 .BI "int isnanf(float " x );
61 .BI "int isnanl(long double " x );
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
67 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
68 .RB ( feature_test_macros (7)
77 _BSD_SOURCE || _SVID_SOURCE
81 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
90 _BSD_SOURCE || _SVID_SOURCE
94 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
102 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
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.
112 ´Ø¿ô¤Ï¡¢ \fIx\fP ¤¬Ìµ¸ÂÂç¤ä̵¸úÃÍ (NaN) ¤Î¤¤¤º¤ì¤Ç¤â¤Ê¤¤
113 ¾ì¹ç¤Ë 0 °Ê³°¤ÎÃͤòÊÖ¤·¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£
117 .\"O functions return a nonzero value if \fIx\fP is a NaN value,
118 .\"O and 0 otherwise.
120 ´Ø¿ô¤Ï¡¢ \fIx\fP ¤¬ NaN ¤Î¾ì¹ç 0 °Ê³°¤ÎÃͤòÊÖ¤·¡¢
121 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£
125 .\"O functions return 1 if \fIx\fP is positive infinity, \-1 if \fIx\fP
126 .\"O is negative infinity, and 0 otherwise.
128 ´Ø¿ô¤Ï¡¢ \fIx\fP ¤¬Àµ¤Î̵¸ÂÂç¤Ç¤¢¤ì¤Ð 1 ¤òÊÖ¤·¡¢\fIx\fP ¤¬Éé¤Î̵¸ÂÂç¤Ç
129 ¤¢¤ì¤Ð \-1 ¤òÊÖ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£
132 .\"O Note that these functions are obsolete.
133 .\"O C99 defines macros
134 .\"O .BR isfinite (),
138 .\"O (for all types) replacing them.
139 .\"O Further note that the C99
141 .\"O has weaker guarantees on the return value.
143 .\"O .BR fpclassify (3).
145 .\"O .\" finite* not on HP-UX; they exist on Tru64.
146 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÇѻߤµ¤ì¤¿ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
147 C99 ¤Ç¤Ï¡¢¤³¤ì¤é¤ÎÃÖ¤´¹¤¨¤È¤·¤Æ (¤É¤ó¤Ê·¿¤Ë¤âŬÍѤǤ¤ë)
151 ¤È¤¤¤¦¥Þ¥¯¥í¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
154 ¤ÏÊÖ¤êÃͤ˴ؤ·¤Æ¼å¤¤°ÕÌ£¤Ç¤ÎÊݾڤ·¤«¤Ê¤¤¤³¤È¤Ë¤â
159 .\" finite* not on HP-UX; they exist on Tru64.
163 .\"O .\" .BR finite ()
164 .\"O .\" function occurs in 4.3BSD.
165 .\"O .\" see IEEE.3 in the 4.3BSD manual
167 .\" ´Ø¿ô¤Ï 4.3BSD ¤ÇÅо줷¤¿¡£
168 .\" 4.3BSD ¤Î¥Þ¥Ë¥å¥¢¥ë¤Î IEEE.3 ¤ò»²¾È