OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / lrint.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 LRINT 3 2010\-09\-20 "" "Linux Programmer's Manual"
33 .SH 名前
34 lrint, lrintf, lrintl, llrint, llrintf, llrintl \- 最も近い整数値に丸める
35 .SH 書式
36 .nf
37 \fB#include <math.h>\fP
38 .sp
39 \fBlong int lrint(double \fP\fIx\fP\fB);\fP
40 .br
41 \fBlong int lrintf(float \fP\fIx\fP\fB);\fP
42 .br
43 \fBlong int lrintl(long double \fP\fIx\fP\fB);\fP
44 .sp
45 \fBlong long int llrint(double \fP\fIx\fP\fB);\fP
46 .br
47 \fBlong long int llrintf(float \fP\fIx\fP\fB);\fP
48 .br
49 \fBlong long int llrintl(long double \fP\fIx\fP\fB);\fP
50 .fi
51 .sp
52 \fI\-lm\fP でリンクする。
53 .sp
54 .in -4n
55 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
56 .in
57 .sp
58 .ad l
59 上記の全ての関数:
60 .RS 4
61 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
62 .br
63 or \fIcc\ \-std=c99\fP
64 .RE
65 .ad
66 .SH 説明
67 これらの関数は、現在の丸め方向に基づき、最も近い整数に引き数を丸める (現在の丸め方向については \fBfesetround\fP(3)  を参照)。
68
69 \fBrint\fP(3)  と違い、これらの関数の返り値の型は引き数の型と異なる点に注意すること。
70 .SH 返り値
71 これらの関数は丸めた整数値を返す。
72
73 .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
74 \fIx\fP が NaN か無限大の場合、もしくは丸めた値が大き過ぎて \fIlong\fP (\fBll*\fP 関数の場合には \fIlong long\fP)
75 に格納できない場合、 領域エラー (domain error) が発生し、返り値は不定となる。
76 .SH エラー
77 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
78 .PP
79 以下のエラーが発生する可能性がある。
80 .TP 
81 領域エラー (domain error): \fIx\fP が NaN か無限大、もしくは丸めた値が大き過ぎる
82 .\" .I errno
83 .\" is set to
84 .\" .BR EDOM .
85 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
86 .PP
87 .\" FIXME . Is it intentional that these functions do not set errno?
88 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6798
89 これらの関数は \fIerrno\fP を設定しない。
90 .SH バージョン
91 これらの関数は glibc バージョン 2.1 で初めて登場した。
92 .SH 準拠
93 C99, POSIX.1\-2001.
94 .SH 関連項目
95 \fBceil\fP(3), \fBfloor\fP(3), \fBlround\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3),
96 \fBround\fP(3)
97 .SH この文書について
98 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
99 である。プロジェクトの説明とバグ報告に関する情報は
100 http://www.kernel.org/doc/man\-pages/ に書かれている。