OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man3 / trunc.3
1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Japanese Version Copyright (c) 2001, 2005 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Sun Jul  8 10:40:20 JST 2001
26 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
27 .\" Updated & Modified Sun Jan 16 08:20:45 JST 2005
28 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
29 .\"
30 .TH TRUNC 3  2010-09-20 "" "Linux Programmer's Manual"
31 .SH Ì¾Á°
32 trunc, truncf, truncl \- 0 ¤Ë¶á¤¤Êý¤ÎÀ°¿ôÃͤ˴ݤá¤ë
33 .SH ½ñ¼°
34 .nf
35 .B #include <math.h>
36 .sp
37 .BI "double trunc(double " x );
38 .br
39 .BI "float truncf(float " x );
40 .br
41 .BI "long double truncl(long double " x );
42 .fi
43 .sp
44 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
45 .sp
46 .in -4n
47 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
48 .RB ( feature_test_macros (7)
49 »²¾È):
50 .in
51 .sp
52 .ad l
53 .BR trunc (),
54 .BR truncf (),
55 .BR truncl ():
56 .RS 4
57 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
58 _POSIX_C_SOURCE\ >=\ 200112L;
59 .br
60 or
61 .I cc\ -std=c99
62 .RE
63 .ad
64 .SH ÀâÌÀ
65 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÀäÂÐÃͤ¬ \fIx\fP ¤è¤ê¾®¤µ¤¤
66 °ìÈֶᤤÀ°¿ôÃͤˠ\fIx\fP ¤ò´Ý¤á¤ë¡£
67 .SH ÊÖ¤êÃÍ
68 ¤³¤ì¤é¤Î´Ø¿ô¤Ï´Ý¤á¤é¤ì¤¿À°¿ôÃͤòÊÖ¤¹¡£
69
70 \fIx\fP ¤¬À°¿ô¡¢Ìµ¸ÂÂç¡¢NaN ¤Î¾ì¹ç¡¢\fIx\fP ¼«¿È¤¬ÊÖ¤µ¤ì¤ë¡£
71 .SH ¥¨¥é¡¼
72 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
73 .SH ¥Ð¡¼¥¸¥ç¥ó
74 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
75 .SH ½àµò
76 C99, POSIX.1-2001.
77 .SH Ãí°Õ
78 ¤³¤ì¤é¤Î´Ø¿ô¤¬ÊÖ¤¹À°¿ôÃͤÏÀ°¿ô·¿
79 .RI ( int ,
80 .I long
81 ¤Ê¤É) ¤Ë³ÊǼ¤¹¤ë¤Ë¤ÏÂ礭²á¤®¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
82 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Î·ë²Ì¤Ïʬ¤«¤é¤Ê¤¤¤Î¤Ç¡¢
83 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤òÈò¤±¤ë¤¿¤á¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤ÏÀ°¿ô·¿¤ËÂåÆþ¤¹¤ëÁ°¤Ë
84 ÊÖ¤µ¤ì¤¿ÃͤÎÈϰϳÎǧ¤ò¼Â¹Ô¤¹¤Ù¤­¤Ç¤¢¤ë¡£
85 .SH ´ØÏ¢¹àÌÜ
86 .BR ceil (3),
87 .BR floor (3),
88 .BR lrint (3),
89 .BR nearbyint (3),
90 .BR rint (3),
91 .BR round (3)