OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / rint.3
index 2d2b503..d93a1f6 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
-.\" and Copyright (c) 2008 Akihiro MOTOKI
-.\" Translated Tue Jan 21 20:52:09 JST 1997
-.\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
-.\" Updated & Modified Fri Jul  6 20:42:59 JST 2001
-.\"       by Yuichi SATO <ysato@h4.dion.ne.jp>
-.\" Updated & Modified Sun Jan 16 07:40:37 JST 2005
-.\"       by Yuichi SATO <ysato444@yahoo.co.jp>
-.\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\"*******************************************************************
 .\"
-.\"WORD:       mantissa                仮数
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH RINT 3  2010-09-20 "" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\"*******************************************************************
+.TH RINT 3 2010\-09\-20 "" "Linux Programmer's Manual"
 .SH 名前
-.\"O nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl \- round
-.\"O to nearest integer
 nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl \- 最も近い整数に丸める
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.B #include <math.h>
+\fB#include <math.h>\fP
 .sp
-.BI "double nearbyint(double " x );
+\fBdouble nearbyint(double \fP\fIx\fP\fB);\fP
 .br
-.BI "float nearbyintf(float " x );
+\fBfloat nearbyintf(float \fP\fIx\fP\fB);\fP
 .br
-.BI "long double nearbyintl(long double " x );
+\fBlong double nearbyintl(long double \fP\fIx\fP\fB);\fP
 .sp
-.BI "double rint(double " x );
+\fBdouble rint(double \fP\fIx\fP\fB);\fP
 .br
-.BI "float rintf(float " x );
+\fBfloat rintf(float \fP\fIx\fP\fB);\fP
 .br
-.BI "long double rintl(long double " x );
+\fBlong double rintl(long double \fP\fIx\fP\fB);\fP
 .fi
 .sp
-.\"O Link with \fI\-lm\fP.
 \fI\-lm\fP でリンクする。
 .sp
 .in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc 向けの機能検査マクロの要件
-.RB ( feature_test_macros (7)
-参照):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-.BR nearbyint (),
-.BR nearbyintf (),
-.BR nearbyintl ():
+\fBnearbyint\fP(), \fBnearbyintf\fP(), \fBnearbyintl\fP():
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L || _ISOC99_SOURCE;
+_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L ||
+_ISOC99_SOURCE;
 .br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
 .RE
 .br
-.BR rint ():
+\fBrint\fP():
 .RS 4
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
-_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
 .br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
 .RE
 .br
-.BR rintf (),
-.BR rintl ():
+\fBrintf\fP(), \fBrintl\fP():
 .RS 4
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
+|| _POSIX_C_SOURCE\ >=\ 200112L;
 .br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
 .RE
 .ad b
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O The
-.\"O .BR nearbyint ()
-.\"O functions round their argument to an integer value in floating-point
-.\"O format, using the current rounding direction (see
-.\"O .BR fesetround (3))
-.\"O and without raising the
-.\"O .I inexact
-.\"O exception.
-.BR nearbyint ()
-関数群は、現在の丸め方向
-.RB ( fesetround (3)
-参照) で引き数を浮動小数点形式の整数に丸める。
-.I inexact
-例外を出さない。
+\fBnearbyint\fP()  関数群は、現在の丸め方向 (\fBfesetround\fP(3)  参照) で引き数を浮動小数点形式の整数に丸める。
+\fIinexact\fP 例外を出さない。
 .LP
-.\"O The
-.\"O .BR rint ()
-.\"O functions do the same, but will raise the
-.\"O .I inexact
-.\"O exception
-.\"O .RB ( FE_INEXACT ,
-.\"O checkable via
-.\"O .BR fetestexcept (3))
-.\"O when the result differs in value from the argument.
-.BR rint ()
-関数群も同じような動作をするが、
-結果が引き数と異なる場合に
-.I inexact
-例外
-.RB ( FE_INEXACT )
-を出す (この例外は
-.BR fetestexcept (3)
-経由で確認可能)。
-.\"O .SH "RETURN VALUE"
+\fBrint\fP()  関数群も同じような動作をするが、 結果が引き数と異なる場合に \fIinexact\fP 例外 (\fBFE_INEXACT\fP)  を出す
+(この例外は \fBfetestexcept\fP(3)  経由で確認可能)。
 .SH 返り値
-.\"O These functions return the rounded integer value.
 これらの関数は丸めた整数値を返す。
 
-.\"O If \fIx\fP is integral, +0, \-0, NaN, or infinite,
-.\"O \fIx\fP itself is returned.
-\fIx\fP が整数、+0、\-0、NaN、無限大のいずれかの場合、
-\fIx\fP そのものを返す。
-.\"O .SH ERRORS
+\fIx\fP が整数、+0、\-0、NaN、無限のいずれかの場合、 \fIx\fP そのものが返される。
 .SH エラー
-.\"O No errors occur.
-エラーは発生しない。
-.\"O POSIX.1-2001 documents a range error for overflows, but see NOTES.
-POSIX.1-2001 にはオーバーフローでの範囲エラー (range error) の
-記載がある。「注意」の節を参照のこと。
-.\"O .SH "CONFORMING TO"
+エラーは発生しない。 POSIX.1\-2001 にはオーバーフローでの範囲エラー (range error) の 記載がある。「注意」の節を参照のこと。
 .SH 準拠
-C99, POSIX.1-2001.
-.\"O .SH NOTES
+C99, POSIX.1\-2001.
 .SH 注意
-.\"O SUSv2 and POSIX.1-2001 contain text about overflow (which might set
-.\"O .I errno
-.\"O to
-.\"O .BR ERANGE ,
-.\"O or raise an
-.\"O .B FE_OVERFLOW
-.\"O exception).
-SUSv2 と POSIX.1-2001 にはオーバーフローに関する記述があり、
-オーバーフローの場合には、
-.I errno
-を
-.B ERANGE
-に設定するか、
-.B FE_OVERFLOW
-例外を発生することとされている。
-.\"O In practice, the result cannot overflow on any current machine,
-.\"O so this error-handling stuff is just nonsense.
-実際のところ、どの現行のマシンでも結果がオーバーフローを起こすことはないので、
-このエラー処理は意味がない。
-.\"O (More precisely, overflow can happen only when the maximum value
-.\"O of the exponent is smaller than the number of mantissa bits.
-.\"O For the IEEE-754 standard 32-bit and 64-bit floating-point numbers
-.\"O the maximum value of the exponent is 128 (respectively, 1024),
-.\"O and the number of mantissa bits is 24 (respectively, 53).)
-(より正確に言うと、オーバーフローは指数部の最大値が
-仮数部を表すビットの数より小さい場合にしか起こらない。
-IEEE-754 規格の 32 ビットと 64 ビットの浮動小数では、
-指数部の最大値はそれぞれ 128 と 1024 であり、
-仮数部のビット数はそれぞれ 24 と 53 である。)
+SUSv2 と POSIX.1\-2001 にはオーバーフローに関する記述があり、 オーバーフローの場合には、 \fIerrno\fP を \fBERANGE\fP
+に設定するか、 \fBFE_OVERFLOW\fP 例外を発生することとされている。
+実際のところ、どの現行のマシンでも結果がオーバーフローを起こすことはないので、 このエラー処理は意味がない。
+(より正確に言うと、オーバーフローは指数部の最大値が 仮数部を表すビットの数より小さい場合にしか起こらない。 IEEE\-754 規格の 32 ビットと
+64 ビットの浮動小数では、 指数部の最大値はそれぞれ 128 と 1024 であり、 仮数部のビット数はそれぞれ 24 と 53 である。)
 
-.\"O If you want to store the rounded value in an integer type,
-.\"O you probably want to use one of the functions described in
-.\"O .BR lrint (3)
-.\"O instead.
-丸めた値を整数型に格納した場合には、おそらくこの関数ではなく
-.BR lrint (3)
-に載っている関数のどれかを使いたいのだろう。
-.\"O .SH "SEE ALSO"
+丸めた値を整数型に格納した場合には、おそらくこの関数ではなく \fBlrint\fP(3)  に載っている関数のどれかを使いたいのだろう。
 .SH 関連項目
-.BR ceil (3),
-.BR floor (3),
-.BR lrint (3),
-.BR round (3),
-.BR trunc (3)
+\fBceil\fP(3), \fBfloor\fP(3), \fBlrint\fP(3), \fBround\fP(3), \fBtrunc\fP(3)