OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / floor.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 Mon Jan 20 18:35:18 JST 1997
28 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
29 .\" Updated & Modified Fri Jul  6 20:37:36 JST 2001
30 .\"       by Yuichi SATO <ysato@h4.dion.ne.jp>
31 .\" Updated & Modified Mon Jan 10 08:45:45 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 FLOOR 3  2008-10-06 "" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 floor, floorf, floorl \- °ú¤­¿ô¤ò±Û¤¨¤Ê¤¤ºÇÂç¤ÎÀ°¿ôÃÍ
40 .SH ½ñ¼°
41 .nf
42 .B #include <math.h>
43 .sp
44 .BI "double floor(double " x );
45 .br
46 .BI "float floorf(float " x );
47 .br
48 .BI "long double floorl(long double " x );
49 .fi
50 .sp
51 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
52 .sp
53 .in -4n
54 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
55 .RB ( feature_test_macros (7)
56 »²¾È):
57 .in
58 .sp
59 .ad l
60 .BR floorf (),
61 .BR floorl ():
62 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
63 .I cc\ -std=c99
64 .ad b
65 .SH ÀâÌÀ
66 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
67 .I x
68 ¤è¤êÂ礭¤¯¤Ê¤¤ºÇÂç¤ÎÀ°¿ôÃͤòÊÖ¤¹¡£
69
70 Î㤨¤Ð¡¢
71 .I floor(0.5)
72 ¤Ï 0.0 ¤Ç¡¢
73 .I floor(\-0.5)
74 ¤Ï \-1.0 ¤Ç¤¢¤ë¡£
75 .SH ÊÖ¤êÃÍ
76 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
77 .I x
78 ¤ò±Û¤¨¤Ê¤¤ºÇ¾®¤ÎÀ°¿ôÃͤòÊÖ¤¹¡£
79
80 \fIx\fP ¤¬À°¿ô¡¢+0¡¢\-0¡¢NaN¡¢Ìµ¸ÂÂç¤Î¤¤¤º¤ì¤«¤Î¾ì¹ç¡¢
81 \fIx\fP ¤½¤Î¤â¤Î¤¬ÊÖ¤µ¤ì¤ë¡£
82 .SH ¥¨¥é¡¼
83 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
84 POSIX.1-2001 ¤Ë¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ËÂФ·¤ÆÈÏ°Ï¥¨¥é¡¼¤¬µ­ºÜ¤µ¤ì¤Æ¤¤¤ë¡£
85 ¡ÖÃí°Õ¡×¤ÎÀá¤ò»²¾È¡£
86 .SH ½àµò
87 C99, POSIX.1-2001.
88 .I double
89 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
90 .SH Ãí°Õ
91 SUSv2 ¤È POSIX.1-2001 ¤Ë¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Ë´Ø¤¹¤ëµ­½Ò¤¬¤¢¤ê¡¢
92 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î¾ì¹ç¤Ë¤Ï¡¢
93 .I errno
94 ¤ò
95 .B ERANGE
96 ¤ËÀßÄꤹ¤ë¤«¡¢
97 .B FE_OVERFLOW
98 Îã³°¤òȯÀ¸¤¹¤ë¤³¤È¤È¤µ¤ì¤Æ¤¤¤ë¡£
99 ¼ÂºÝ¤Î¤È¤³¤í¡¢¸½¹Ô¤Î¥Þ¥·¥ó¤Ç¤Ï·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤òµ¯¤³¤¹¤³¤È¤Ï¤Ê¤¤¤Î¤Ç¡¢
100 ¤³¤Î¥¨¥é¡¼½èÍý¤Ï°ÕÌ£¤¬¤Ê¤¤¡£
101 .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point.
102 (¤è¤êÀµ³Î¤Ë¸À¤¦¤È¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Ï»Ø¿ôÉô¤ÎºÇÂçÃͤ¬
103 ²¾¿ôÉô¤òɽ¤¹¥Ó¥Ã¥È¤Î¿ô¤è¤ê¾®¤µ¤¤¾ì¹ç¤Ë¤·¤«µ¯¤³¤é¤Ê¤¤¡£
104 IEEE-754 µ¬³Ê¤Î 32 ¥Ó¥Ã¥È¤È 64 ¥Ó¥Ã¥È¤ÎÉâÆ°¾®¿ô¤Ç¤Ï¡¢
105 »Ø¿ôÉô¤ÎºÇÂçÃͤϤ½¤ì¤¾¤ì 128 ¤È 1024 ¤Ç¤¢¤ê¡¢
106 ²¾¿ôÉô¤Î¥Ó¥Ã¥È¿ô¤Ï¤½¤ì¤¾¤ì 24 ¤È 53 ¤Ç¤¢¤ë¡£)
107 .SH ´ØÏ¢¹àÌÜ
108 .BR ceil (3),
109 .BR lrint (3),
110 .BR nearbyint (3),
111 .BR rint (3),
112 .BR round (3),
113 .BR trunc (3)