c:math:modf From C++ Reference previous page next page modf Syntax: #include <cmath> double modf( double num, double *i ); The function modf() splits num into its integer and fraction parts. It returns the fractional part and loads the integer part into i. Related Topics: frexp, ldexp previous page start next page