Convert Decimal to Rational