Assume that we have a number $x$ which is less than $1$ and is written in base 10.
For example, if we want to write $x$ in base $4$, The algorithm says that each time we multiply $x$ by $4$. Then $4x$ has an integer part and the rest is the decimal part. We write the decimal part and then again multiply the decimal part by $4$. The process continues until we reach a number having $0$ as its fractional part.
The question is:
Why do we just multiply the fractional part? What's the logic of omitting the digits and then multiplying the fractional part?
Note: My question may seem too easy. But I'm trying to understand the algorithm. So, an explanation of what we're doing here would be great.
Thanks in advance.