Conversion of Terminating Decimal Numbers in Rational form