print(numerator/denominator-numerator//denominator)

Read more of this post