Encoding Schemes and Number System
Encoding Schemes and Number System
What is Encoding?
Why Encoding?
Platform Independency
Internationalization
Security
Effective Communication
Space 32 @ 64
! 33 A 65
“ 34 B 66
# 35 C 67
$ 36 D 68
% 37 E 69
& 38 F 70
‘ 39 G 71
( 40 H 72
) 41 I 73
It is superset of ASCII
It is used by humans
It uses 10 different digits from 0 to 9 to represent
numbers.
Decimal number system has base 10
Each place to the left is ten times greater than the place
information.
Octal Number System has base 8.
addresses.
It is used to display error messages.
Decimal
to Binary Conversion
Example 2: Convert (234)10 to Binary Number
top)
Example 1: Convert (186)10 to Octal Number.
top)
Example 1: Convert (763)10 to Hexadecimal Number.
Binary to
Decimal Conversion
Example 2: Convert (111100)2 to Decimal Number
1 x 25 + 1 x 2 4 + 1 x 23 + 1 x 2 2 + 0 x 2 1 + 0 x 20
= 32 + 16 + 8 + 4 + 0 + 0
= (61)10
Octal to decimal
conversion
Example 2: Convert (1325)8 to Decimal Number
1 x 83 + 3 x 8 2 + 2 x 81 + 5 x 80
= 512 + 192 + 16 + 5
= (725)10
Hexadecimal to
decimal conversion
Example 2: Convert (1BF6)16 to Decimal Number
Binary to octal
conversion
Example 2: Convert (1011)2 in Octal Number
1 0 1 1
001 011
13
=(13)8
1. Write octal
number
2. Replace each digit of octal number with its equivalent set
of 3-bit
3. From left to write Arrange and write all 3-bit sets
together and form binary equivalent of given given octal
number.
Example 1: convert (745)8 into binary number
1 1 1 0 1 0 0 1 1 0 1
7 4 D
= (74D)16
1. Write hexadecimal
number