Welcome To Our Presentation: Today Our Topic Is Numbering Systems and Computer Codes
Welcome To Our Presentation: Today Our Topic Is Numbering Systems and Computer Codes
presentation
Natural Numbers
The number 0 and any number obtained by
repeatedly adding a count of 1 to 0
Negative Numbers
A value less than 0
Integer
A natural number, the negative of a natural number,
and 0.
So an integer number system is a system for
‘counting’ things in a simple systematic way
Bits
Position weights 2 4 2 3 2 2 21 2 0
digits 1 0 1 1
Binary Numbering System
positional powers of 2: 2 4 23 2 2 21 20
decimal positional value: 16 8 4 2 1
binary number: 1 0 1 1 1
16 + 4 + 2 + 1 = 2310
Decimal to Binary Conversion
21 26 25 24 23 22 21 20
64 32 16 8 4 2 1
- 16
5 1
0 1
- 4 0 1
1
Base: 8
Digits: 0, 1, 2, 3, 4, 5, 6, 7
= (3 x 82 ) + (5 x 81) + (7 x 80)
8 ) 214 Rem:
8 ) 26 6
8) 3 2
0 3
Decimal to Octal Conversion
Example 1: 31510
315 82 81 80
- 256 (4 x 64)
64 8 1
59 4 7 3
- 56 (7 x 8)
3
- 3 (3 x 1)
Answer: 31510 = 4738
0
Decimal to Octal Conversion
Example 2: 201810
2018 84 83 82 81 80
-1536 (3 x 512) 4096 512 64 8 1
482 3 7 4 2
- 448 (7 x 64)
34
- 32 (4 x 8)
2
- 2 (2 x 1) Answer: 201810 = 37428
0
Hexadecimal (Hex)
Numbering System
Base: 16
Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Example 1: 1F416
Hexadecimal number: 1 F 4
(1 x 256) + (F x 16) + (4 x 1)
= (1 x 256) + (15 x 16) + (4 x 1)
101001102 = 2468
Binary to Hex Conversion
The maximum value represented in 4 bit is:
24 – 1 = 15
So E8A16 = 72128
computer codes