OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / lrint.3
index 3a28e07..ba4d058 100644 (file)
@@ -2,6 +2,7 @@
 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2001, 2005 Yuichi SATO
 .\"         all rights reserved.
 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\"
-.TH LRINT 3  2010-09-20 "" "Linux Programmer's Manual"
-.SH Ì¾Á°
-lrint, lrintf, lrintl, llrint, llrintf, llrintl \- ºÇ¤â¶á¤¤À°¿ôÃͤ˴ݤá¤ë
-.SH ½ñ¼°
+.TH LRINT 3 2014\-01\-18 "" "Linux Programmer's Manual"
+.SH 名前
+lrint, lrintf, lrintl, llrint, llrintf, llrintl \- 最も近い整数値に丸める
+.SH 書式
 .nf
-.B #include <math.h>
+\fB#include <math.h>\fP
 .sp
-.BI "long int lrint(double " x );
+\fBlong int lrint(double \fP\fIx\fP\fB);\fP
 .br
-.BI "long int lrintf(float " x );
+\fBlong int lrintf(float \fP\fIx\fP\fB);\fP
 .br
-.BI "long int lrintl(long double " x );
+\fBlong int lrintl(long double \fP\fIx\fP\fB);\fP
 .sp
-.BI "long long int llrint(double " x );
+\fBlong long int llrint(double \fP\fIx\fP\fB);\fP
 .br
-.BI "long long int llrintf(float " x );
+\fBlong long int llrintf(float \fP\fIx\fP\fB);\fP
 .br
-.BI "long long int llrintl(long double " x );
+\fBlong long int llrintl(long double \fP\fIx\fP\fB);\fP
 .fi
 .sp
-\fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
+\fI\-lm\fP でリンクする。
 .sp
 .in -4n
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-¾åµ­¤ÎÁ´¤Æ¤Î´Ø¿ô:
+上記の全ての関数:
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
 .br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
 .RE
 .ad
-.SH ÀâÌÀ
-¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¸½ºß¤Î´Ý¤áÊý¸þ¤Ë´ð¤Å¤­¡¢ºÇ¤â¶á¤¤À°¿ô¤Ë°ú¤­¿ô¤ò´Ý¤á¤ë
-(¸½ºß¤Î´Ý¤áÊý¸þ¤Ë¤Ä¤¤¤Æ¤Ï
-.BR fesetround (3)
-¤ò»²¾È)¡£
+.SH 説明
+これらの関数は、現在の丸め方向に基づき、最も近い整数に引き数を丸める (現在の丸め方向については \fBfesetround\fP(3)  を参照)。
 
-.BR rint (3)
-¤È°ã¤¤¡¢¤³¤ì¤é¤Î´Ø¿ô¤ÎÊÖ¤êÃͤη¿¤Ï°ú¤­¿ô¤Î·¿¤È°Û¤Ê¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
-.SH ÊÖ¤êÃÍ
-¤³¤ì¤é¤Î´Ø¿ô¤Ï´Ý¤á¤¿À°¿ôÃͤòÊÖ¤¹¡£
+\fBrint\fP(3) 系の関数と違い、これらの関数の返り値の型は引き数の型と異なる点に注意すること。
+.SH 返り値
+これらの関数は丸めた整数値を返す。
 
-.I x
-¤¬ NaN ¤«Ìµ¸ÂÂç¤Î¾ì¹ç¡¢¤â¤·¤¯¤Ï´Ý¤á¤¿Ãͤ¬Â礭²á¤®¤Æ
-.I long
-.RB ( ll*
-´Ø¿ô¤Î¾ì¹ç¤Ë¤Ï
-.IR "long long" )
-¤Ë³ÊǼ¤Ç¤­¤Ê¤¤¾ì¹ç¡¢
-Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢ÊÖ¤êÃͤÏÉÔÄê¤È¤Ê¤ë¡£
 .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
-.SH ¥¨¥é¡¼
-¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
-.BR math_error (7)
-¤ò»²¾È¤Î¤³¤È¡£
+\fIx\fP が NaN か無限大の場合、もしくは丸めた値が大き過ぎて \fIlong\fP (\fBll*\fP 関数の場合には \fIlong long\fP)
+に格納できない場合、 領域エラー (domain error) が発生し、返り値は不定となる。
+.SH エラー
+これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
 .PP
-°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
-.TP
-Îΰ襨¥é¡¼: \fIx\fP ¤¬ NaN ¤«Ìµ¸ÂÂç¡¢¤â¤·¤¯¤Ï´Ý¤á¤¿Ãͤ¬Â礭²á¤®¤ë
+以下のエラーが発生する可能性がある。
+.TP 
+領域エラー (domain error): \fIx\fP が NaN か無限大、もしくは丸めた値が大き過ぎる
 .\" .I errno
 .\" is set to
 .\" .BR EDOM .
-ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
-.RB ( FE_INVALID )
-¤¬¾å¤¬¤ë¡£
+不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
 .PP
-¤³¤ì¤é¤Î´Ø¿ô¤Ï
-.I errno
-¤òÀßÄꤷ¤Ê¤¤¡£
 .\" FIXME . Is it intentional that these functions do not set errno?
 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6798
-.SH ¥Ð¡¼¥¸¥ç¥ó
-¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
-.SH ½àµò
-C99, POSIX.1-2001.
-.SH ´ØÏ¢¹àÌÜ
-.BR ceil (3),
-.BR floor (3),
-.BR lround (3),
-.BR nearbyint (3),
-.BR rint (3),
-.BR round (3)
+これらの関数は \fIerrno\fP を設定しない。
+.SH バージョン
+これらの関数は glibc バージョン 2.1 で初めて登場した。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+関数 \fBlrint\fP(), \fBlrintf\fP(), \fBlrintl\fP(), \fBllrint\fP(), \fBllrintf\fP(),
+\fBllrintl\fP() はスレッドセーフである。
+.SH 準拠
+C99, POSIX.1\-2001.
+.SH 関連項目
+\fBceil\fP(3), \fBfloor\fP(3), \fBlround\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3),
+\fBround\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。