C++ Programming/Code/Standard C Library/Functions/modf

modfEdit

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
Last modified on 14 June 2009, at 16:47