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 modf, modff, modfl \- 浮動小数点実数から、符号付き整数と小数部分を取り出す関数
45 .BI "double modf(double " x ", double *" iptr );
47 .BI "float modff(float " x ", float *" iptr );
49 .BI "long double modfl(long double " x ", long double *" iptr );
55 .RB ( feature_test_macros (7)
63 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
64 _POSIX_C_SOURCE\ >=\ 200112L;
72 関数は、引数 \fIx\fP を整数部分と小数部分に分割する。
73 このとき、ふたつの値はともに \fIx\fP と同じ符号を持つ。
74 整数部分は \fIiptr\fP が指す場所に格納される。
88 に正の無限大 (負の無限大) が設定される。
94 版の関数は SVr4, 4.3BSD, C89 にも準拠している。