Next: Addition
Up: Binary Numbers
Previous: Breaking Down a Binary
Contents
The previous section shows a method to convert from binary to decimal.
It is also possible to reverse the process. Given a decimal number,
we can use division to convert it to a binary number.
Let us consider the number 53. This is how we come up with the bits:
 |
 |
 |
(8.7) |
 |
 |
 |
(8.8) |
 |
 |
 |
(8.9) |
 |
 |
 |
(8.10) |
 |
 |
 |
(8.11) |
 |
 |
 |
(8.12) |
 |
 |
 |
(8.13) |
 |
 |
 |
(8.14) |
 |
|
|
(8.15) |
If you read the remainders bottom-up, you have a binary number of
. The leading zeros (to the left) are useless. This means
the process could have stopped when the quotient becomes one.
Next: Addition
Up: Binary Numbers
Previous: Breaking Down a Binary
Contents
Tak Auyeung
2003-12-03