This is an old revision of this page, as edited by Pi zero (discuss | contribs) at 01:52, 9 June 2017. It may differ significantly from the current revision. |
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.