Page 99 - 2502_Pakistan-kifayat_C-7
P. 99
Example 2: Convert the decimal number 64, i.e., (64) to binary.
10
2 64
2 32 → 0
2 16 → 0
2 8 → 0
2 4 → 0
2 2 → 0
1 → 0
The binary equivalent of (64) is 1000000
10
In other words, (64) = (1000000) 2
10
Converting Binary to Decimal
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 at 0 and
increase to 1, 2, and so on as you move leftward.
Add up all the resulting products. You will get your decimal number.
The given examples will help you understand the conversion.
Example 1: Convert (1111) to decimal number.
2
0
1
3
= 1 × 2 + 1 × 2 + 1 × 2 + 1 × 2
2
= 8 + 4 + 2 + 1
= 15
(1111) = (15)
10
2
Example 2: Convert (10111) to decimal number.
2
2
3
0
1
4
= 1 × 2 + 0 × 2 + 1 × 2 + 1 × 2 + 1 × 2
= 16 + 0 + 4 + 2 + 1
= 23
(10111) = (23) 10
2
Double Tap Century #Critical Thinking
21 st
Skills
Write the distance between your school and home in km.
Convert this distance in:
Meter binary number system
#Binary Language 97

