I am attempting to solve the following two questions. The first question I believe I have done correctly and I am looking to confirm this answer. The second question I am not sure about.
$1)$ Convert $5.1$ in base $10$ to base $2$
My solution.
Looking at the whole number to the left of the decimal $5$
$$(5)_{10} = 2^2+1 = 2^2 + 2^0 = 1\cdot2^2 + 0\cdot 2^1 + 1 \cdot2^0 = (101)_2$$
Looking at the decimal part:
How do I calculate this?
My other question is can this answered be stored exactly on a computer?