2.2 Binary number conversion
2.2.1 Binary to Decimal conversion
Refer the digit weight of binary number, you can convert number system from
Binary to Decimal following some examples as follows.
Example 2-1 Convert the binary number 1011 to decimal
(1) Define the digit weight
Digit b3 b2 b1 b0
Digit weight 23 22 21 20
Binary 1 0 1 1
(2) multiply the digit weight by binary number at each bit. After that, add all
multiplication together.
Decimal = (1x23) + (0x22) + (1x21) + (1x20)
= (1x8) + (0x4) + (1x2) + (1x1)
= 8+0+2+1
= 11