1 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Japanese Version Copyright (c) 2001, 2005 Yuichi SATO
26 .\" all rights reserved.
27 .\" Translated Sat Jul 14 11:21:46 JST 2001
28 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
29 .\" Updated & Modified Sun Jan 16 06:26:19 JST 2005
30 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
31 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
33 .TH LROUND 3 2010-09-20 "" "Linux Programmer's Manual"
35 lround, lroundf, lroundl, llround, llroundf, llroundl \-
36 (0 から遠い方の) 最も近い整数値に丸める
40 .BI "long int lround(double " x );
42 .BI "long int lroundf(float " x );
44 .BI "long int lroundl(long double " x );
46 .BI "long long int llround(double " x );
48 .BI "long long int llroundf(float " x );
50 .BI "long long int llroundl(long double " x );
57 .RB ( feature_test_macros (7)
64 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
65 _POSIX_C_SOURCE\ >=\ 200112L;
73 これらの関数は最も近い整数に引き数を丸める。
75 0 から遠い方の最も近い整数に引き数は丸められる
82 などと違い、これらの関数の返り値の型は引き数の型と異なる点に注意すること。
87 が NaN か無限大の場合、もしくは丸めた値が大き過ぎて
93 領域エラー (domain error) が発生し、返り値は不定となる。
94 .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
96 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
102 領域エラー (domain error): \fIx\fP が NaN か無限大、もしくは丸めた値が大き過ぎる
113 .\" FIXME . Is it intentional that these functions do not set errno?
114 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6797
116 これらの関数は glibc バージョン 2.1 で初めて登場した。