Page 11 - TP-Play_V-2.0_Book-8
P. 11
Example 2: Convert the decimal number 64, i.e., (64) to binary.
10
2 64
2 32 –0
2 16 –0
2 8 –0 (64) = (1000000)
10 2
2 4 –0
2 2 –0
1 –0
BINARY TO DECIMAL CONVERSION
To convert a binary number into a decimal number, follow these steps:
Start from the right-most digit known as the LSD before the fractional point, and move
leftwards.
While doing so, multiply each digit by 2 raised to a particular power. The powers of 2 start
from 0 and increase to 1, 2, and so on as you move leftwards.
Add up all the resulting products. You will get your decimal number.
The following examples will help you to understand the conversion.
Example 1: Convert (1111) to decimal number.
2
3
2
1
0
= 1 × 2 + 1 × 2 + 1 × 2 + 1 × 2
= 8 + 4 + 2 + 1
= 15
(1111) = (15)
2 10
Example 2: Convert (10111)2 to decimal number.
2
3
1
4
= 1 × 2 + 0 × 2 + 1 × 2 + 1 × 2 + 1 + 2 0
= 16 + 0 + 4 + 2 + 1
= 23
(10111) = (23)
2 10
Example 3: Convert (101.101) to decimal number.
2
Position 2 1 0 –1 –2 –3
Face value 1 0 1 • 1 0 1
Weights 2 2 2 1 2 0 2 –1 2 –2 2 –3
-2
-1
0
2
1
101.101 = 1 × 2 + 0 × 2 + 1 × 2 + 1 × 2 + 0 × 2 + 1 × 2 -3
Number System 11

