Question: what is modf in c?
Answer: Description. The C library function double modf(double x, double *integer) returns the fraction component (part after the decimal), and sets integer to the integer component.