Slide 02A - Number Systems
Slide 02A - Number Systems
Naeem Ahmed
Chapter 2 (A)
Number Systems
By
Dr. Naeem Ahmed 1
Number System
• Computers use Decimal, Binary, Octal, and Hexadecimal
number systems.
1
Intro to ICT - Number System By Dr. Naeem Ahmed
2
Intro to ICT - Number System By Dr. Naeem Ahmed
3
Intro to ICT - Number System By Dr. Naeem Ahmed
4
Intro to ICT - Number System By Dr. Naeem Ahmed
147 ÷ 2 73 1 1
73 ÷ 2 36 1 1
36 ÷ 2 18 0 0
18 ÷ 2 9 0 0
9÷2 4 1 1
4÷2 2 0 0
2÷2 1 0 0
1÷2 0 1 1 (MSB)
Therefore, the binary equivalent for the given decimal number 29410 is 1001001102
5
Intro to ICT - Number System By Dr. Naeem Ahmed
Solution
563 =
2 563 -----1
2 281 -----1
2 140 -----0
2 70 -----0
2 35 -----1
2 17 -----1
2 8 -----0
2 4 -----0
2 2 -----0
1
6
Intro to ICT - Number System By Dr. Naeem Ahmed
0110101 =
(0 × 26 ) + (1 × 25 ) + (1 × 24) + (0 × 23) + (1× 22 ) + (0 × 21 ) + (1 × 20)
= 0 + 32 + 16 + 0 + 4 + 0 + 1
= 53
10100011
= (1 × 27) + (0 × 26) + (1 × 25) + (0 × 24) + (0 × 23) + (0 × 22) + (1 × 21) + (1 × 20)
= 128 + 0 + 32 + 0 + 0 + 0 + 2 + 1
= 163
11101111 =
(1 × 27) + (1 × 26) + (1 × 25) + (0 × 24) + (1 × 23) + (1 × 22) + (1 × 21) + (1 × 20)
= 128 + 64 + 32 + 0 + 8 + 4 + 2 + 1
= 239
Intro to ICT - Number System 14
7
Intro to ICT - Number System By Dr. Naeem Ahmed
1792 ÷8 224 0 0
224 ÷8 28 0 00
28 ÷8 3 4 400
3 ÷8 0 3 3400
8
Intro to ICT - Number System By Dr. Naeem Ahmed
9
Intro to ICT - Number System By Dr. Naeem Ahmed
10