In theory, binary expansions and decimal expansions are the same. To wit:
$n = 0.a_1a_2a_3....._{10} = \sum\limits_{k = 1}^{\infty} a_k \frac 1{10^k}$ for $a_k\in\{0,1,.... 9\}$.
And $n = 0.b_1b_2..... _{2} = \sum\limits_{k = 1}^{\infty} b_k \frac 1{2^k}$ for $b_k \in \{0,1\}$.
If $n \not \in \mathbb Q$ then the decimal and the binary expansion is infinitely long and does not repeat periodically.
If $n = \frac pq\in \mathbb Q$ and if $q|10^m$ for some $m$ then the decimal expansion will terminate after at most $m$ terms. Otherwise the decimal expansion is infinite but repeats for a period of at most $q$ terms.
And if $q|2^m$ for some $m$ then the binary expansion will .... ditto ...
And to write $m = \frac 57$ or $n = \frac 9{10}$ as decimal or binary is more or less the same.
Base 10: If $m = \frac 57$ we see that $\frac 57 < 1$ so we multiply by $10$ and get $\frac {50}{7} = 7\frac 1{7}$ so $a_1 = 7$.
Base 2: If $n = \frac 9{10}$ we see that $\frac 9{10} < 1$ so we multiply by $2$ and get $\frac {18}{10} = 1\frac 45$ so $b_1 = 1$.
Base 10: We take the remainder, $\frac 17$ and multiply by $10$. $\frac {10}7 = 1\frac 37$ so $a_2 = 1$.
Base 2: We take the remainder, $\frac 45$ and multiply by $2$. $\frac {8}5 = 1\frac 35$ so $b_2 = 1$.
Base 10: we repeat indefinately. Remainder is $\frac 37$. We multply by $10$ and get $\frac {30}7 = 4\frac 27$ so $a_3=4$. $10*\frac 27 = \frac {20}7 = 2\frac 67$ so $a_4= 2$. $10*\frac 67=\frac {60}7 = 8\frac 47$ so $a_5 = 8$ etc.
Base 2: we repeat indefinately. Remainder is $\frac 36$. We multply by $2$ and get $\frac {6}5 = 1\frac 15$ so $b_3=1$. $2*\frac 15 = \frac 25 = 0\frac 67$ so $b_4= 0$. $2*\frac 25=\frac {4}5 = 0\frac 45$ so $b_5 = 0$ etc.
[Note: this is easier than decimal expansion because we never actually have to divide anything. We just need to test if values are great or less than $1$.
Base 10: we continue until with either get a remainder $0$ or if we get are remainder we had before. $10*\frac 47 = \frac {40}7 = 5\frac 57$ so $a_6 = 7$. But $\frac 57$ is where we started. This is an infinite loop. $m= \frac 57 = 0.714285\overline{714285}$.
Base 2: we continue until with either get a remainder $0$ or if we get are remainder we had before. $2*\frac 45 = \frac 85 = 1\frac 35$ so $b_6 = 1$. $2*\frac 35 = \frac 65 = 1\frac 15$ so $b_7 = 1$. But we had $\frac 15 $ back when we calculated $b_3$. We are now in an infinite loop. $n = \frac 9{10} = 0.1110011\overline{0011}$.
Now just to hammer this home:
We can verify our answers.
$m = 0.714285\overline{714285}$
$10^6m = 714285.714285\overline{714285}$
$999999m= 714285$
$m = \frac {714285}{999999} = \frac {5*142857}{7*142857} = \frac 57$.
$n = .111001100110011...$
$2^4n = 1110.0110011....$
$(2^4-1)n= 1101.1$
$(15n)*2 = 11011_2 = 27$
$n = \frac {27}{30} = \frac 9{10}$.