[Math] Converting Repeating Decimal Numbers to Fractions

rational numbers

Is it possible to write any decimal number, with a repeating decimal part, and be able to convert it into the form $\frac nd$ (where both $n$ and $d$ are natural numbers)?

I know rational numbers that are expressed in decimal notation will either terminate exactly (such as $1.25$, which is the value $\frac54$), or repeat forever (such as $0.333\cdots$, which is the value $\frac13$).

So if I just come up with any random repeating decimal, like $2.175175175\cdots$, does that mean there MUST be two natural numbers $n$ and $d$ that can represent this value as $\frac nd$?

I'm just trying to get a better feel for rational numbers and decimals.

Best Answer

Yes, as long at the repeating decimal is a positive number. Here's how: Let $x = 0.175175175\cdots$ Then $1000x - x = 175$. This implies $999x = 175$ and we have $0.175175175\cdots = \frac{175}{999}$.

Finally, $2.175175175\cdots = 2 + \frac{175}{999} =\frac{2173}{999}$