#include <math.h>
float modf (
floatval, /* value to calculate modulo for */
float *ip); /* integer portion of modulo */
Description
The modf function splits the floating-point number val into integer and fractional components. The fractional part of val is returned as a signed floating-point number. The integer part is stored as a floating-point number at ip.
Return Value
The modf function returns the signed fractional part of val.