Breaks the argument value into integral and fractional parts.
#include <math.h> double modf ( double value, double *iptr);
(IN) Specifies the value to be broken into integral and fractional parts.
(OUT) Points to the object into which the integral part is stored as a double.
Returns the signed fractional part of value.
The modf function breaks the argument value into integral and fractional parts, each of which has the same sign as the argument. It stores the integral part as a double in the object pointed to by iptr.