The earliest mention of the converse, that all repeating decimals are rationals, comes late, surprisingly late, by Lambert in 1758, he justifies it by using the now familiar trick with the geometric series. In Euler's Elements of Algebra (1765), "one of the earliest books to set out algebra in the modern form... and one of Euler's few writings that are accessible to the general public" we find the same trick $9.999...=9+9/10+9/10^2+...=\frac{9}{1-1/10}=10$. However, according to the formal attitude of the 18th century, e.g. Euler'se.g. Euler's, we also have $1+2+2^2+\dots=\frac{1}{1-2}=-1$, by definition. It took some time before Cauchy tied summing series to convergence.