Converts a finite Decimal instance to a rational number, exactly.
fractions/Fraction.from_decimal
Fraction.from_decimal