C Programming/math.h/modf

modf is the c reference function, this function breaks number or value into its fractional and integral parts, these parts have same sign as their argument.

Variants
In C, the function prototype of the modf function look like following: