1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL, 2002-07-27 Walter Harms
3 .\" This was done with the help of the glibc manual.
5 .\" 2004-10-31, aeb, corrected
7 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
8 .\" all rights reserved.
9 .\" Translated 2004-07-27, Yuichi SATO <ysato444@yahoo.co.jp>
10 .\" Updated & Modified 2005-01-10, Yuichi SATO
11 .\" Updated & Modified 2005-09-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
14 .TH FPCLASSIFY 3 2010-09-20 "" "Linux Programmer's Manual"
17 .\"O fpclassify, isfinite, isnormal, isnan, isinf \- floating-point
18 .\"O classification macros
19 fpclassify, isfinite, isnormal, isnan, isinf \- 浮動小数点数の分類マクロ
25 .BI "int fpclassify(" x );
27 .BI "int isfinite(" x );
29 .BI "int isnormal(" x );
36 .\"O Link with \fI\-lm\fP.
40 .\"O Feature Test Macro Requirements for glibc (see
41 .\"O .BR feature_test_macros (7)):
43 .RB ( feature_test_macros (7)
47 .\" I haven't fully grokked the source to determine the FTM requirements;
48 .\" in part, the following has been tested by experiment.
54 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
55 _POSIX_C_SOURCE\ >=\ 200112L;
62 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
63 _POSIX_C_SOURCE\ >=\ 200112L;
70 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
71 _POSIX_C_SOURCE\ >=\ 200112L;
79 .\"O Floating point numbers can have special values, such as
82 .\"O .BI fpclassify( x )
83 .\"O you can find out what type
86 .\"O The macro takes any floating-point expression as argument.
87 浮動小数点数は無限大や NaN のような特別な値を持つことができる。
93 マクロは任意の浮動小数点数表現を引き数としてとることができる。
94 .\"O The result is one of the following values:
99 .\"O is "Not a Number".
101 が "Not a Number" である (数値ではない)。
105 .\"O is either positive infinity or negative infinity.
117 .\"O is too small to be represented in normalized format.
122 .\"O if nothing of the above is correct then it must be a
123 .\"O normal floating-point number.
127 .\"O The other macros provide a short answer to some standard questions.
128 他のマクロは、いくつかの標準的な問いに対して、簡単な答えを提供する。
131 .\"O returns a nonzero value if
133 .\"O (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE)
134 (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE)
138 .\"O returns a nonzero value if
139 .\"O (fpclassify(x) == FP_NORMAL)
140 (fpclassify(x) == FP_NORMAL)
144 .\"O returns a nonzero value if
145 .\"O (fpclassify(x) == FP_NAN)
146 (fpclassify(x) == FP_NAN)
152 .\"O is positive infinity, and \-1 if
154 .\"O is negative infinity.
158 .\"O .SH "CONFORMING TO"
164 .\"O the standards merely say that the return value is nonzero
165 .\"O if and only if the argument has an infinite value.
168 返り値が 0 以外になるのは引き数が無限大の場合だけということだけである。
171 .\"O In glibc 2.01 and earlier,
173 .\"O returns a nonzero value (actually: 1) if
175 .\"O is positive infinity or negative infinity.
176 .\"O (This is all that C99 requires.)
184 0 以外の値を返すということだけである)。