To convert a repeating decimal with a non-repeating and repeating part into a fraction:
\[ x = 0.\text{nonrep rep rep}... \quad \Rightarrow \quad x = \frac{\text{(all digits up to one full repeat)} - \text{(nonrep part)}}{\underbrace{99\ldots900\ldots0}_{\text{rep length} \;|\; \text{nonrep length}}}. \]
Use this when decimals have some non-repeating digits before the repeating pattern begins (e.g. 0.167, 0.245).
The formula provides a shortcut to convert mixed repeating decimals into fractions. Simply write all digits, subtract the non-repeating part, and divide by the correct combination of 9’s and 0’s.