Decimal to Division form of Rational Number
Notes:
Every number with a non-terminating recurring decimal expansion can be expressed in the form p/q where q is not zero.
The decimal expansion of a rational number is either terminating or nonterminating
recurring. Moreover, a number whose decimal expansion is
terminating or non-terminating recurring is rational.