OSDN Git Service

(split) Fixed #25191 (typo in fenv.3).
[linuxjm/LDP_man-pages.git] / release / man3 / rint.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 .\" 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.
8 .\"
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.
13 .\"
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
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
26 .\" and Copyright (c) 2008 Akihiro MOTOKI
27 .\" Translated Tue Jan 21 20:52:09 JST 1997
28 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
29 .\" Updated & Modified Fri Jul  6 20:42:59 JST 2001
30 .\"       by Yuichi SATO <ysato@h4.dion.ne.jp>
31 .\" Updated & Modified Sun Jan 16 07:40:37 JST 2005
32 .\"       by Yuichi SATO <ysato444@yahoo.co.jp>
33 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
34 .\"
35 .\"WORD:        mantissa                ²¾¿ô
36 .\"
37 .TH RINT 3  2010-09-20 "" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl \- ºÇ¤â¶á¤¤À°¿ô¤Ë´Ý¤á¤ë
40 .SH ½ñ¼°
41 .nf
42 .B #include <math.h>
43 .sp
44 .BI "double nearbyint(double " x );
45 .br
46 .BI "float nearbyintf(float " x );
47 .br
48 .BI "long double nearbyintl(long double " x );
49 .sp
50 .BI "double rint(double " x );
51 .br
52 .BI "float rintf(float " x );
53 .br
54 .BI "long double rintl(long double " x );
55 .fi
56 .sp
57 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
58 .sp
59 .in -4n
60 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
61 .RB ( feature_test_macros (7)
62 »²¾È):
63 .in
64 .sp
65 .ad l
66 .BR nearbyint (),
67 .BR nearbyintf (),
68 .BR nearbyintl ():
69 .RS 4
70 _XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L || _ISOC99_SOURCE;
71 .br
72 or
73 .I cc\ -std=c99
74 .RE
75 .br
76 .BR rint ():
77 .RS 4
78 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
79 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
80 _POSIX_C_SOURCE\ >=\ 200112L;
81 .br
82 or
83 .I cc\ -std=c99
84 .RE
85 .br
86 .BR rintf (),
87 .BR rintl ():
88 .RS 4
89 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
90 _POSIX_C_SOURCE\ >=\ 200112L;
91 .br
92 or
93 .I cc\ -std=c99
94 .RE
95 .ad b
96 .SH ÀâÌÀ
97 .BR nearbyint ()
98 ´Ø¿ô·²¤Ï¡¢¸½ºß¤Î´Ý¤áÊý¸þ
99 .RB ( fesetround (3)
100 »²¾È) ¤Ç°ú¤­¿ô¤òÉâÆ°¾®¿ôÅÀ·Á¼°¤ÎÀ°¿ô¤Ë´Ý¤á¤ë¡£
101 .I inexact
102 Îã³°¤ò½Ð¤µ¤Ê¤¤¡£
103 .LP
104 .BR rint ()
105 ´Ø¿ô·²¤âƱ¤¸¤è¤¦¤ÊÆ°ºî¤ò¤¹¤ë¤¬¡¢
106 ·ë²Ì¤¬°ú¤­¿ô¤È°Û¤Ê¤ë¾ì¹ç¤Ë
107 .I inexact
108 Îã³°
109 .RB ( FE_INEXACT )
110 ¤ò½Ð¤¹ (¤³¤ÎÎã³°¤Ï
111 .BR fetestexcept (3)
112 ·Ðͳ¤Ç³Îǧ²Äǽ)¡£
113 .SH ÊÖ¤êÃÍ
114 ¤³¤ì¤é¤Î´Ø¿ô¤Ï´Ý¤á¤¿À°¿ôÃͤòÊÖ¤¹¡£
115
116 \fIx\fP ¤¬À°¿ô¡¢+0¡¢\-0¡¢NaN¡¢Ìµ¸ÂÂç¤Î¤¤¤º¤ì¤«¤Î¾ì¹ç¡¢
117 \fIx\fP ¤½¤Î¤â¤Î¤òÊÖ¤¹¡£
118 .SH ¥¨¥é¡¼
119 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
120 POSIX.1-2001 ¤Ë¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Ç¤ÎÈÏ°Ï¥¨¥é¡¼ (range error) ¤Î
121 µ­ºÜ¤¬¤¢¤ë¡£¡ÖÃí°Õ¡×¤ÎÀá¤ò»²¾È¤Î¤³¤È¡£
122 .SH ½àµò
123 C99, POSIX.1-2001.
124 .SH Ãí°Õ
125 SUSv2 ¤È POSIX.1-2001 ¤Ë¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Ë´Ø¤¹¤ëµ­½Ò¤¬¤¢¤ê¡¢
126 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î¾ì¹ç¤Ë¤Ï¡¢
127 .I errno
128 ¤ò
129 .B ERANGE
130 ¤ËÀßÄꤹ¤ë¤«¡¢
131 .B FE_OVERFLOW
132 Îã³°¤òȯÀ¸¤¹¤ë¤³¤È¤È¤µ¤ì¤Æ¤¤¤ë¡£
133 ¼ÂºÝ¤Î¤È¤³¤í¡¢¤É¤Î¸½¹Ô¤Î¥Þ¥·¥ó¤Ç¤â·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤òµ¯¤³¤¹¤³¤È¤Ï¤Ê¤¤¤Î¤Ç¡¢
134 ¤³¤Î¥¨¥é¡¼½èÍý¤Ï°ÕÌ£¤¬¤Ê¤¤¡£
135 (¤è¤êÀµ³Î¤Ë¸À¤¦¤È¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Ï»Ø¿ôÉô¤ÎºÇÂçÃͤ¬
136 ²¾¿ôÉô¤òɽ¤¹¥Ó¥Ã¥È¤Î¿ô¤è¤ê¾®¤µ¤¤¾ì¹ç¤Ë¤·¤«µ¯¤³¤é¤Ê¤¤¡£
137 IEEE-754 µ¬³Ê¤Î 32 ¥Ó¥Ã¥È¤È 64 ¥Ó¥Ã¥È¤ÎÉâÆ°¾®¿ô¤Ç¤Ï¡¢
138 »Ø¿ôÉô¤ÎºÇÂçÃͤϤ½¤ì¤¾¤ì 128 ¤È 1024 ¤Ç¤¢¤ê¡¢
139 ²¾¿ôÉô¤Î¥Ó¥Ã¥È¿ô¤Ï¤½¤ì¤¾¤ì 24 ¤È 53 ¤Ç¤¢¤ë¡£)
140
141 ´Ý¤á¤¿ÃͤòÀ°¿ô·¿¤Ë³ÊǼ¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¤ª¤½¤é¤¯¤³¤Î´Ø¿ô¤Ç¤Ï¤Ê¤¯
142 .BR lrint (3)
143 ¤ËºÜ¤Ã¤Æ¤¤¤ë´Ø¿ô¤Î¤É¤ì¤«¤ò»È¤¤¤¿¤¤¤Î¤À¤í¤¦¡£
144 .SH ´ØÏ¢¹àÌÜ
145 .BR ceil (3),
146 .BR floor (3),
147 .BR lrint (3),
148 .BR round (3),
149 .BR trunc (3)