The modf function

Name

modf -- 

Synopsis

#include <math.h>

double modf (double value, double *iptr);

Description

The modf function breaks the argument value into integral and fraction parts, each of which has the same sign as the argument. It stores the integral part as a double in the object pointed to by iptr.

Returns

The modf function returns the signed fraction part of value.

Implementation Notes

None