1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
9 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
10 .\" Modified 2002-07-27 by Walter Harms
11 .\" (walter.harms@informatik.uni-oldenburg.de)
13 .TH MODF 3 2021-03-22 "Linux man-pages (unreleased)"
15 modf, modff, modfl \- extract signed integral and fractional values from
19 .RI ( libm ", " \-lm )
24 .BI "double modf(double " x ", double *" iptr );
25 .BI "float modff(float " x ", float *" iptr );
26 .BI "long double modfl(long double " x ", long double *" iptr );
30 Feature Test Macro Requirements for glibc (see
31 .BR feature_test_macros (7)):
37 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
38 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
39 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
42 These functions break the argument
45 part and a fractional part, each of which has the same sign as
47 The integral part is stored in the location pointed to by
50 These functions return the fractional part of
55 is a NaN, a NaN is returned, and
61 is positive infinity (negative infinity), +0 (\-0) is returned, and
63 is set to positive infinity (negative infinity).
67 For an explanation of the terms used in this section, see
75 Interface Attribute Value
80 T} Thread safety MT-Safe
86 C99, POSIX.1-2001, POSIX.1-2008.