Consider the following number:
$$x=0.23434343434\dots$$
My question is whether this number is rational or irrational, and how can I make sure that a specific number is rational if it was written in decimal form.
Also, is $0.234$ rational or irrational?
Let $y = .3434\ldots$. Then, $100y = 34.3434\ldots$. So $100y-y = 99y = 34$. Hence, $y = \frac{34}{99}$.
Since $0.03434\ldots$ is just the above divided by $10$, we have
$$0.2343434\ldots = 0.2 + \frac{34}{990}$$
which is certainly rational.