It is fairly straightforward to change a binary number into a denary number. Each time a
1 appears in a column, the column value is added to the total. For example, the binary
number above is:128 + 64 + 32 + 8 + 4 + 2 = 238 (denary)
The 0 values are simply ignored when calculating the total. The reverse operation –
converting from denary to binary – is slightly more complex. There are two basic ways
of doing this. Consider the conversion of the denary number, 107, into binary.
Method 1: -
This method involves placing 1s in the appropriate position so that the total equates to
128 64 32 16 8 4 2 1
0 1 1 0 1 0 1 1
Method 2: -
This method involves successive division by 2; the remainders are then written from
bottom to top to give the binary value.