I was doing some exercises about conversion of numerical representation between base 10 and base 2. In particular, i was solving the exercise: $(3.1416)_{10} $ to base 2. I solved about sixteen interactions over the fractional part and i wasn't expecting it to end very soon (actually i was hoping for some period to show).
So my question is: is there any criteria to decide when the numerical representation will be finite?
The base $b$ representation of $x$ is finite if and only if $b^d x$ is an integer for some $d$. If you write $x$ as a rational number of the form $m/n$ (in lowest terms), what you need is that with $n$ divides some power of $b$.
Equivalently, every prime dividing $n$ also divides $b$. If $b = 2$, the only prime allowed is $2$: $n$ must be a power of $2$.
Now if the decimal representation of $x$ is $A.B$, i.e. the fractional part of $x$ is $B/10^d$ where $B$ consists of $d$ digits, this is equivalent to $B$ being divisible by $5^d$.