OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / floor.3
1 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH FLOOR 3 2013\-07\-23 "" "Linux Programmer's Manual"
33 .SH 名前
34 floor, floorf, floorl \- 引き数を越えない最大の整数値
35 .SH 書式
36 .nf
37 \fB#include <math.h>\fP
38 .sp
39 \fBdouble floor(double \fP\fIx\fP\fB);\fP
40 .br
41 \fBfloat floorf(float \fP\fIx\fP\fB);\fP
42 .br
43 \fBlong double floorl(long double \fP\fIx\fP\fB);\fP
44 .fi
45 .sp
46 \fI\-lm\fP でリンクする。
47 .sp
48 .in -4n
49 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
50 .in
51 .sp
52 .ad l
53 \fBfloorf\fP(), \fBfloorl\fP():
54 .RS 4
55 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
56 || _POSIX_C_SOURCE\ >=\ 200112L;
57 .br
58 or \fIcc\ \-std=c99\fP
59 .RE
60 .ad
61 .SH 説明
62 これらの関数は \fIx\fP より大きくない最大の整数値を返す。
63
64 例えば、 \fIfloor(0.5)\fP は 0.0 で、 \fIfloor(\-0.5)\fP は \-1.0 である。
65 .SH 返り値
66 これらの関数は \fIx\fP を越えない最小の整数値を返す。
67
68 \fIx\fP が整数、+0、\-0、NaN、無限大のいずれかの場合、 \fIx\fP そのものが返される。
69 .SH エラー
70 エラーは発生しない。 POSIX.1\-2001 にはオーバーフローでの範囲エラー (range error) の 記載がある。「注意」の節を参照のこと。
71 .SH 属性
72 .SS "マルチスレッディング (pthreads(7) 参照)"
73 The \fBfloor\fP(), \fBfloorf\fP(), and \fBfloorl\fP()  functions are thread\-safe.
74 .SH 準拠
75 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
76 .SH 注意
77 .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point.
78 SUSv2 と POSIX.1\-2001 にはオーバーフローに関する記述があり、 オーバーフローの場合には、 \fIerrno\fP を \fBERANGE\fP
79 に設定するか、 \fBFE_OVERFLOW\fP 例外を発生することとされている。
80 実際のところ、どの現行のマシンでも結果がオーバーフローを起こすことはないので、 このエラー処理は意味がない。
81 (より正確に言うと、オーバーフローは指数部の最大値が 仮数部を表すビットの数より小さい場合にしか起こらない。 IEEE\-754 規格の 32 ビットと
82 64 ビットの浮動小数では、 指数部の最大値はそれぞれ 128 と 1024 であり、 仮数部のビット数はそれぞれ 24 と 53 である。)
83 .SH 関連項目
84 \fBceil\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3),
85 \fBtrunc\fP(3)
86 .SH この文書について
87 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
88 である。プロジェクトの説明とバグ報告に関する情報は
89 http://www.kernel.org/doc/man\-pages/ に書かれている。