OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / 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 .\"*******************************************************************
24 .\"
25 .\" This file was generated with po4a. Translate the source file.
26 .\"
27 .\"*******************************************************************
28 .TH FINITE 3 2008\-08\-05 "" "Linux Programmer's Manual"
29 .SH 名前
30 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- BSD
31 の浮動小数点分類関数
32 .SH 書式
33 .nf
34 \fB#include <math.h>\fP
35 .sp
36 \fBint finite(double \fP\fIx\fP\fB);\fP
37 .br
38 \fBint finitef(float \fP\fIx\fP\fB);\fP
39 .br
40 \fBint finitel(long double \fP\fIx\fP\fB);\fP
41 .sp
42 \fBint isinf(double \fP\fIx\fP\fB);\fP
43 .br
44 \fBint isinff(float \fP\fIx\fP\fB);\fP
45 .br
46 \fBint isinfl(long double \fP\fIx\fP\fB);\fP
47 .sp
48 \fBint isnan(double \fP\fIx\fP\fB);\fP
49 .br
50 \fBint isnanf(float \fP\fIx\fP\fB);\fP
51 .br
52 \fBint isnanl(long double \fP\fIx\fP\fB);\fP
53 .fi
54 .sp
55 .in -4n
56 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
57 .in
58 .sp
59 .ad l
60 \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP():
61 .RS 4
62 _BSD_SOURCE || _SVID_SOURCE
63 .RE
64 \fBisinf\fP():
65 .RS 4
66 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
67 .br
68 or \fIcc\ \-std=c99\fP
69 .RE
70 .br
71 \fBisinff\fP(), \fBisinfl\fP():
72 .RS 4
73 _BSD_SOURCE || _SVID_SOURCE
74 .RE
75 \fBisnan\fP():
76 .RS 4
77 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
78 .br
79 or \fIcc\ \-std=c99\fP
80 .RE
81 \fBisnanf\fP(), \fBisnanl\fP():
82 .RS 4
83 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
84 .RE
85 .ad b
86 .SH 説明
87 \fBfinite\fP()  関数は、 \fIx\fP が無限大や無効値 (NaN) のいずれでもない 場合に 0 以外の値を返し、それ以外の場合は 0 を返す。
88
89 \fBisnan\fP()  関数は、 \fIx\fP が NaN の場合 0 以外の値を返し、 それ以外の場合は 0 を返す。
90
91 \fBisinf\fP()  関数は、 \fIx\fP が正の無限大であれば 1 を返し、\fIx\fP が負の無限大で あれば \-1 を返す。それ以外の場合は 0
92 を返す。
93 .SH 注意
94 .\"
95 .\" finite* not on HP-UX; they exist on Tru64.
96 .\" .SH HISTORY
97 .\" The
98 .\" .BR finite ()
99 .\" function occurs in 4.3BSD.
100 .\" see IEEE.3 in the 4.3BSD manual
101 これらの関数は廃止された点に注意すること。 C99 では、これらの置き換えとして (どんな型にも適用できる)  \fBisfinite\fP(),
102 \fBisinf\fP(), \fBisnan\fP()  というマクロが定義されている。 さらに C99 の \fBisinf\fP()
103 は返り値に関して弱い意味での保証しかないことにも 注意すること。詳細は \fBfpclassify\fP(3)  を参照。
104 .SH 関連項目
105 \fBfpclassify\fP(3)