Section: Linux Programmer's Manual (3) Updated: 2010-09-20 Local index
modf, modff, modfl - extract signed integral and fractional values from
double modf(double x, double *iptr);
float modff(float x, float *iptr);
long double modfl(long double x, long double *iptr);
Link with -lm.
Feature Test Macro Requirements for glibc (see
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE ||
_POSIX_C_SOURCE >= 200112L;
function breaks the argument x into an integral
part and a fractional part, each of which has the same sign as x.
The integral part is stored in the location pointed to by iptr.
function returns the fractional part of x.
is a NaN, a NaN is returned, and
is set to a NaN.
is positive infinity (negative infinity), +0 (-0) is returned, and
is set to positive infinity (negative infinity).
No errors occur.
The variant returning
also conforms to
SVr4, 4.3BSD, C89.
This page is part of release 3.27 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:50:16 GMT, April 16, 2011