I've been reading about floating point types in java such as double. I've also been reading about converting fractions to binary and how to do it. I can do the math and find that representing 0.2 in binary is the following approximation:
0.00110011001100...
However 2 in binary is 10. So why can't I just say that 0.2 (base 10 ) is equivalent to 0.10 (base 2)?
I've read a similar question, but I'm still confused by this
Another example would be something like 5.8
101.110011001100...
Why couldn't we do: 101.1000 since 8 in binary is 1000
I understand that 0.10 and 0.1000 are the same, but in this context they would be separate.