modf

 
Syntax

         

#include <math.h>
float modf( float num, float *i );

The function modf() splits num into its integer and fraction

parts. It returns the fractional part and loads the integer

part into i.