modf
Syntax
- double modf(double x, double * ipart)
Arguments
- x
- The floating point value to be split.
- ipart
- Pointer to a double which will store the integer part.
Return
- Fractional part of x.
Description
- Breaks x in two parts: the integer (stored in location pointed by ipart) and the fraction (return value).
Comments
- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.