The modf functions decompose their first argument x into a positive fractional part f and an integer part i, each of which has the same sign as x. The functions return f and assign i to the object pointed to by the second argument (iptr).