How to convert the number $fada.cafe_{16}$ to binary?
I used Wolfram understand it, but when I type $fada.cafe_{16}$, it changes to $fada.cafdfffffd..._{16}$. Why that?
How to convert the number $fada.cafe_{16}$ to binary?
I used Wolfram understand it, but when I type $fada.cafe_{16}$, it changes to $fada.cafdfffffd..._{16}$. Why that?
Hint: Each hexadecimal digit is represented in binary by four binary digits.
So you can replace the last $e$ with $1110$.
The numbers $\mathtt{fada.cafe}_{16}$ and $\mathtt{fada.cafdfffffd}..._{16}$ are very close to each other. In http://en.wikipedia.org/wiki/IEEE_floating_point you can see that IEEE double precision arithmetic is accurate to 52 binary digits. And the difference between the two numbers you wrote here is after the 13th HEX digit, that is, the 13*4=52nd BIN digit.
One possibility is that Wolfram converts them to base 10 when reading in the number, and then converts them to base 16 again, loosing a digit in the process. But that's speculation on my part.