DATA REPRESENTATION
1 wire = 2 combinations i.e 0,1
2 1 = 2
2 wires = 2 2 = 4
4 combinations i.e 00,01,10,11
3 wires = 2 3 = 8 combinations
number system :
* Decimal System
* Binary System
* Octal System
* Hexadecimal System
i) Face value of digits
ii) Base of number system
iii) Position of number system
decimal number system
Decimal system has only 10 digits from 0 to 9
Base for Decimal is 10
Eg : The number 425 is represented as
400 + 20 + 5
4 x 102 + 2 x 101 + 5 x 100
decimal number system
Eg : The number 4791.83 is represented as :
= 4x103 + 7x102 + 9x101 + 1x100 + 8x10-1 + 3x10 -2
binary number system
Binary system has only 2 digits i.e 0 and 1.
The base for binary number is 2
So we will learn how to convert Decimal to Binary
Convert (29)10 to (X)2
(29)10 = (11101)2 οΏ½
Convert the following :
1. (43)10 to (X)2
Convert the following :
Convert the following :
7. (3.15)10 to (X)2
8. (14.625)10 to (X)2
8. (10.16)10 to (X)2
Convert binary to decimal
1 . (1100)2 to (X)10
1 x 23 + 1 x 22 + 0 x 21 + 0 x 20
8 + 4 + 0 + 0 = 12
Ans : (1100)2 to (12)10
Convert binary to decimal
Convert binary to decimal
Convert binary to decimal
4. (101.110)2 to (X)10
1 x 22 + 0 x 21 + 1 x 20 + 1 x 2-1 + 1 x 2-2 + 0 x 2-3
= 4 + 0 + 1 + 0.5 + 0.25 + 0
= 5.75
Ans : (101.110)2 to (5.75)10
2.(1010.0101) 2 ---(10.3125) 10
OCTAL NUMBER SYSTEM
and numbers from (0 β 7)
Convert from decimal to octal
1. (125)10 to (X)8
2. (670)10 to (X)8οΏ½οΏ½οΏ½
2. (670)10 to (1236)8οΏ½
3. (0.218)10 to (x)8οΏ½
3. (0.218)10 to (x)8οΏ½
Decimal
Binary
Octal
Hexa decimal
4. (670)8 to (X)2
X | Y | Z | N |
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 2 |
0 | 1 | 1 | 3 |
1 | 0 | 0 | 4 |
1 | 0 | 1 | 5 |
1 | 1 | 0 | 6 |
1 | 1 | 1 | 7 |
4. (670)8 to (X)2
X | Y | Z | N |
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 2 |
0 | 1 | 1 | 3 |
1 | 0 | 0 | 4 |
1 | 0 | 1 | 5 |
1 | 1 | 0 | 6 |
1 | 1 | 1 | 7 |
5. (347)8 to (X)2
6. (56.27)8 to (X)2
7. (101110)2 to (X)8
8. (1110)2 to (X)8
9. (10111.001)2 to (X)8
10. (10110110.0101)2 to (X)8
5. (347)8 to (X)2 011 100 111
6. (56.27)8 to (X)2 101110.010111
7. (101110)2 to (X)8 56
8. (1110)2 to (X)8 16
9. (10111.001)2 to (X)8 27.1
10. (10110110.0101)2 to (X)8 266.24
HEXADECIMAL NUMBER SYSTEM
A | B | C | D | N |
0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 0 | 2 |
0 | 0 | 1 | 1 | 3 |
0 | 1 | 0 | 0 | 4 |
0 | 1 | 0 | 1 | 5 |
0 | 1 | 1 | 0 | 6 |
0 | 1 | 1 | 1 | 7 |
1 | 0 | 0 | 0 | 8 |
1 | 0 | 0 | 1 | 9 |
1 | 0 | 1 | 0 | A |
1 | 0 | 1 | 1 | B |
1 | 1 | 0 | 0 | C |
1 | 1 | 0 | 1 | D |
1 | 1 | 1 | 0 | E |
1 | 1 | 1 | 1 | F |
convert the following
5. (179)16 to (X)10
convert the following
BINARY ADDITION
CASE 1 : 0 + 0 = 0
CASE 2 : 0 + 1 = 1
CASE 3 : 1+ 0 = 1
CASE 4 : 1 + 1 = 10 equals 0 with a carry 1
CASE 5 : 1 + 1 + 1 = 11 equals 1 with a carry 1
ADD THE FOLLOWING USING BINARY ADDITION
1 0 1
1 1 0
10 1 1
ADD THE FOLLOWING USING BINARY ADDITION