Addressed infinite decimal expansions as well since they are just as important and the title doesn't suggest this article is only about finite decimals