Chapter DataReprentation
Chapter DataReprentation
DATA REPRESENTATION
NUMBER SYSTEM
It refers to the ways of writing numbers using digits or other
symbols in a consistent manner.
It provides a unique representation of every number.
The value of any digit in a number can be determined by:
• The digit
• Its position in the number
• The base of the number system
Types of Number System : The four most common number
system types are:-
• Decimal number system (Base- 10)
• Binary number system (Base- 2)
• Octal number system (Base-8)
• Hexadecimal number system (Base- 16)
Decimal Number System :
It has base 10 and is made up of ten unique digits from 0 to 9.
Example : ( 1457 )10 , ( 28 )10 etc
It is a positional value number system where the value of each
digit depends on its position.
Like - 1 4 5 7
103 101
102 100
i.e the decimal number 1457 = (1×103) + (4×102) + (5×101) + (7×1)
Binary Number System :
It has base 2 and is made up of two unique symbols 0 and 1.
Example : ( 11010 )2 , ( 11 )2 etc
It is also positional value number system where the value of
each digit depends on its position.
Like - 1 1 0 1
23 21
22 20
i.e the binary number 1101 = (1×23) + (1×22) + (0×21) + (1×20)
= (13) 10
Octal Number System :
It has base 8 and is made up of eight unique symbols from
0 to 7.
Example : ( 2437 )8 , ( 65 )8 etc
It is also positional value number system.
Like - 2 4 3 7
83 81
82 80
i.e the octal number 2437 = (2×83) + (4×82) + (3×81) + (7×80)
= (1311) 10
Hexadecimal Number System :
It has base 16 and is made up of sixteen unique symbols from
0 to 9 and A to F ( for 10 to 15 where A represents 10, B means
11 …).
Example : ( 1A3 )16 , ( 65C )16 etc
It is also positional value number system.
Like - 1 A 3
161
162 160
i.e the HexaDecimal number 1A3 = (1×162) + (10×161) + (3×160)
= (419) 10
Number Conversions
1. Decimal to Binary :
Two ways/ Methods –
(a) Repeated Division Method
Example : Convert ( 35 )10 to Binary