Is there a function that can cancel down fractions as far as they go, and then return the denominator and the numerator as separate integers?