1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" References consulted:
24 .\" Linux libc source code
25 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
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)
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>
38 .TH MODF 3 2010-09-20 "" "Linux Programmer's Manual"
40 .\"O modf, modff, modfl \- extract signed integral and fractional values from
41 .\"O floating-point number
42 modf, modff, modfl \- ÉâÆ°¾®¿ôÅÀ¼Â¿ô¤«¤é¡¢Éä¹æÉÕ¤À°¿ô¤È¾®¿ôÉôʬ¤ò¼è¤ê½Ð¤¹´Ø¿ô
47 .BI "double modf(double " x ", double *" iptr );
49 .BI "float modff(float " x ", float *" iptr );
51 .BI "long double modfl(long double " x ", long double *" iptr );
53 .\"O Link with \fI\-lm\fP.
54 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
57 .\"O Feature Test Macro Requirements for glibc (see
58 .\"O .BR feature_test_macros (7)):
59 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
60 .RB ( feature_test_macros (7)
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
69 _POSIX_C_SOURCE\ >=\ 200112L;
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.
83 ´Ø¿ô¤Ï¡¢°ú¿ô \fIx\fP ¤òÀ°¿ôÉôʬ¤È¾®¿ôÉôʬ¤Ëʬ³ä¤¹¤ë¡£
84 ¤³¤Î¤È¤¡¢¤Õ¤¿¤Ä¤ÎÃͤϤȤâ¤Ë \fIx\fP ¤ÈƱ¤¸Éä¹æ¤ò»ý¤Ä¡£
85 À°¿ôÉôʬ¤Ï \fIiptr\fP ¤¬»Ø¤¹¾ì½ê¤Ë³ÊǼ¤µ¤ì¤ë¡£
86 .\"O .SH "RETURN VALUE"
90 .\"O function returns the fractional part of \fIx\fP.
92 ´Ø¿ô¤Ï \fIx\fP ¤Î¾®¿ôÉôʬ¤òÊÖ¤¹¡£
96 .\"O is a NaN, a NaN is returned, and
100 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¡¢
102 ¤Ë NaN ¤¬ÀßÄꤵ¤ì¤ë¡£
106 .\"O is positive infinity (negative infinity), +0 (-0) is returned, and
108 .\"O is set to positive infinity (negative infinity).
110 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Î¾ì¹ç¡¢
113 ¤ËÀµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤¬ÀßÄꤵ¤ì¤ë¡£
116 .\"O No errors occur.
118 .\"O .SH "CONFORMING TO"
121 .\"O The variant returning
123 .\"O also conforms to
124 .\"O SVr4, 4.3BSD, C89.
126 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£