|
|
#include <cmath>float modf(float num, float *i);double modf(double num, double *i); long double modf(long double num, long double *i);
The modf( ) function decomposes num into its integer and fractional parts. It returns the fractional portion and places the integer part in the variable pointed to by i.
Related functions are frexp( ) and ldexp( ).
|
|