math.h -
Exponential, Logarithmic and Power Functions
- modf
Declaration:
double modf(double x,
double *integer);
Breaks the floating-point number x into
integer and fraction components.
The returned value is the fraction component (part after
the decimal), and sets integer to the integer
component.
Range:
There is no range limit on the argument or return value.