2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" References consulted:
7 .\" Linux libc source code
8 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
10 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
11 .\" Modified 2002-07-27 by Walter Harms
12 .\" (walter.harms@informatik.uni-oldenburg.de)
14 .TH modf 3 (date) "Linux man-pages (unreleased)"
16 modf, modff, modfl \- extract signed integral and fractional values from
20 .RI ( libm ", " \-lm )
25 .BI "double modf(double " x ", double *" iptr );
26 .BI "float modff(float " x ", float *" iptr );
27 .BI "long double modfl(long double " x ", long double *" iptr );
31 Feature Test Macro Requirements for glibc (see
32 .BR feature_test_macros (7)):
38 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
39 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
40 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
43 These functions break the argument
46 part and a fractional part, each of which has the same sign as
48 The integral part is stored in the location pointed to by
51 These functions return the fractional part of
56 is a NaN, a NaN is returned, and
62 is positive infinity (negative infinity), +0 (\-0) is returned, and
64 is set to positive infinity (negative infinity).
68 For an explanation of the terms used in this section, see
74 Interface Attribute Value
81 T} Thread safety MT-Safe