math.modf (x)

Returns two numbers, the integral part of x and the fractional part of x.