Each place in an octet represents a different power of 2. As in the
Base 10 number system, the powers increase from right to left.
Figure
illustrates a method for converting binary numbers to decimal numbers. Figure
allows you to practice your conversion skills.
Figure
illustrates a method for converting decimal numbers to binary numbers. Figure
allows you to practice your conversion skills.
Example:
10010000 (Work
from right to left).
0
x 20 |
= |
0 |
0
x 21 |
= |
0 |
0
x 22 |
= |
0 |
0
x 23 |
= |
0 |
1
x 24 |
= |
16 |
0
x 25 |
= |
0 |
0
x 26 |
= |
0 |
1
x 27 |
= |
128 |
__________ |
Total |
= |
144 |
In this example, there are 0 values of 20; 0
values of 21; 0 values of 22; 0 values of 23; 1 value of
24; 0 values of 25; 0 values of 26; and 1 value of 27.
There are no 1s, no 2s, no 4s, no 8s, one 16s, no 32s, no 64, and one 128. Added together,
the values total 144, therefore, the binary number 10010000 equals the decimal number 144.