1MODF(3)                    Linux Programmer's Manual                   MODF(3)
2
3
4

NAME

6       modf, modff, modfl - extract signed integral and fractional values from
7       floating-point number
8

SYNOPSIS

10       #include <math.h>
11
12       double modf(double x, double *iptr);
13       float modff(float x, float *iptr);
14       long double modfl(long double x, long double *iptr);
15
16       Link with -lm.
17

DESCRIPTION

19       The modf() function breaks the argument x into an integral part  and  a
20       fractional  part,  each  of which has the same sign as x.  The integral
21       part is stored in iptr.
22

RETURN VALUE

24       The modf() function returns the fractional part of x.
25

CONFORMING TO

27       SVr4, 4.3BSD, C89.  The float and long double variants are C99 require‐
28       ments.
29

SEE ALSO

31       frexp(3), ldexp(3)
32
33
34
35                                  2002-07-27                           MODF(3)
Impressum