Syntax
#include <math.h>
double modf(double x, double *intptr)
float modff(float x, float *intptr)
Arguments
x original value to separate the fractional part and integral part
intptr pointer to the location where the integral part of x is to be stored
Return Value
The fractional part of x
Description
Separates the fractional part of x, which is returned, from the integral part of x, which is stored in the location specified by intptr.