This idea leads to the p-adic numbers:

https://en.wikipedia.org/wiki/P-adic_number