OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / modf.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
28 .\" Modified 2002-07-27 by Walter Harms
29 .\"     (walter.harms@informatik.uni-oldenburg.de)
30 .\"
31 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
32 .\"       all rights reserved.
33 .\" Translated Tue Feb 17 11:01:38 JST 1998
34 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
35 .\" Updated Sun Sep 14 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
36 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
37 .\"
38 .TH MODF 3  2010-09-20 ""  "Linux Programmer's Manual"
39 .SH Ì¾Á°
40 .\"O modf, modff, modfl \- extract signed integral and fractional values from
41 .\"O floating-point number
42 modf, modff, modfl \- ÉâÆ°¾®¿ôÅÀ¼Â¿ô¤«¤é¡¢Éä¹æÉÕ¤­À°¿ô¤È¾®¿ôÉôʬ¤ò¼è¤ê½Ð¤¹´Ø¿ô
43 .SH ½ñ¼°
44 .nf
45 .B #include <math.h>
46 .sp
47 .BI "double modf(double " x ", double *" iptr );
48 .br
49 .BI "float modff(float " x ", float *" iptr );
50 .br
51 .BI "long double modfl(long double " x ", long double *" iptr );
52 .fi
53 .\"O Link with \fI\-lm\fP.
54 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
55 .sp
56 .in -4n
57 .\"O Feature Test Macro Requirements for glibc (see
58 .\"O .BR feature_test_macros (7)):
59 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
60 .RB ( feature_test_macros (7)
61 »²¾È):
62 .in
63 .sp
64 .ad l
65 .BR modf (),
66 .BR modl ():
67 .RS 4
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
69 _POSIX_C_SOURCE\ >=\ 200112L;
70 .br
71 or
72 .I cc\ -std=c99
73 .RE
74 .ad
75 .\"O .SH DESCRIPTION
76 .SH ÀâÌÀ
77 .\"O The
78 .\"O .BR modf ()
79 .\"O function breaks the argument \fIx\fP into an integral
80 .\"O part and a fractional part, each of which has the same sign as \fIx\fP.
81 .\"O The integral part is stored in the location pointed to by \fIiptr\fP.
82 .BR modf ()
83 ´Ø¿ô¤Ï¡¢°ú¿ô \fIx\fP ¤òÀ°¿ôÉôʬ¤È¾®¿ôÉôʬ¤Ëʬ³ä¤¹¤ë¡£
84 ¤³¤Î¤È¤­¡¢¤Õ¤¿¤Ä¤ÎÃͤϤȤâ¤Ë \fIx\fP ¤ÈƱ¤¸Éä¹æ¤ò»ý¤Ä¡£
85 À°¿ôÉôʬ¤Ï \fIiptr\fP ¤¬»Ø¤¹¾ì½ê¤Ë³ÊǼ¤µ¤ì¤ë¡£
86 .\"O .SH "RETURN VALUE"
87 .SH ÊÖ¤êÃÍ
88 .\"O The
89 .\"O .BR modf ()
90 .\"O function returns the fractional part of \fIx\fP.
91 .BR modf ()
92 ´Ø¿ô¤Ï \fIx\fP ¤Î¾®¿ôÉôʬ¤òÊÖ¤¹¡£
93
94 .\"O If
95 .\"O .I x
96 .\"O is a NaN, a NaN is returned, and
97 .\"O .IR *iptr
98 .\"O is set to a NaN.
99 .I x
100 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¡¢
101 .IR *iptr
102 ¤Ë NaN ¤¬ÀßÄꤵ¤ì¤ë¡£
103
104 .\"O If
105 .\"O .I x
106 .\"O is positive infinity (negative infinity), +0 (-0) is returned, and
107 .\"O .IR *iptr
108 .\"O is set to positive infinity (negative infinity).
109 .I x
110 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Î¾ì¹ç¡¢
111 +0 (\-0) ¤¬ÊÖ¤µ¤ì¡¢
112 .IR *iptr
113 ¤ËÀµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤¬ÀßÄꤵ¤ì¤ë¡£
114 .\"O .SH ERRORS
115 .SH ¥¨¥é¡¼
116 .\"O No errors occur.
117 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
118 .\"O .SH "CONFORMING TO"
119 .SH ½àµò
120 C99, POSIX.1-2001.
121 .\"O The variant returning
122 .\"O .I double
123 .\"O also conforms to
124 .\"O SVr4, 4.3BSD, C89.
125 .I double
126 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
127 .\"O .SH "SEE ALSO"
128 .SH ´ØÏ¢¹àÌÜ
129 .BR frexp (3),
130 .BR ldexp (3)