Professional Documents
Culture Documents
Ch01 Data Representation Part1
Ch01 Data Representation Part1
Digits
5 2 6 . 4 2
Positional values Decimal
102 101 100 Point
10-1 10-2
Binary Number System
MSB(Most Significant Bit) LSB(Least Significant Bit)
Digits
1 0 1 . 0 1
Positional values Binary
22 21 20 Point
2-1 2-2
Octal Number System
Digits
5 2 6 . 4 2
Positional values Octal Point
82 81 80 8-1 8-2
Hexadecimal Number System
Digits
A 6 D . 4 C
Positional values Hexadecimal
162 161 160 Point
16-1 16-2
Conversion
1. Binary to Decimal number System.
2. Octal to Decimal number System.
3. Hexadecimal to Decimal number System.
A.1:Binary to Decimal number System
1 1 0 . 1
22 21 20 Binary 2-1
point
1 X 2-1 =1/2=0.5
0 X 20 =0X1=0
1 X 21=1X2=2
1 X 22=1X4=4
(110.1)2 = 6.510
A.2:Octal to Decimal number System
5 0 1 6 . 4
83 82 81 80 Octal 8-1
point
A B 1 2 . 4
Hexadecimal
163 162 161 160 point 16-1
4 X 16-1 = 4/16 = 0.25
2 X 160 = 2X1=2
1 X 161 = 1X16 =16
11 X 162 = 11X256 =2816
10 X 163 = 10X4096 =40960
(AB12.4)16 = (6930.25)10
1. Decimal to Binary number System.
2. Decimal to Octal number System.
3. Decimal to Hexadecimal number System.
B.1: Decimal to Binary number System.
Convert 45.7510 to its Binary Equivalent
Sol. First we convert Integer part i.e. 45 as: Now we convert Fractional part i.e. 0.75 as
Integer Part
Top to Bottom
0.75 X 2 1.50 1
0.50 X 2 1.00 1
2 45
2 22 1
2 11 0
2 5 1 Bottom to up
Hence 45.7510 = 101101.112
2 2 1
2 1 0
0 1
Top to Bottom
0.75 X 8 6.0 6
8 245
Bottom to up
8 30 5
8 3 6 Hence 245.7510 = 365.68
0 3
Top to Bottom
0.75 X 16 12.0 12(C)
16 1245
Bottom to up
16 77 13(D)
16 4 13(D) Hence 1245.7510 = 4DD.C16
0 4