More Related Content
Similar to Hexadecimal to binary and binary to hexadecimal (20)
More from SRM Institute of Science & Technology, Tiruchirappalli (6)
Hexadecimal to binary and binary to hexadecimal
- 1. NUMBER SYSTEM CONVERSION
Dr.S.ANITHA
Hexadecimal to Binary
Hexadecimal (16), binary (2)
Hexadecimal
(0-15)
Binary (4 digits)
23 22 21 20
8 4 2 1
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 A 1 0 1 0
11 B 1 0 1 1
12 C 1 1 0 0
- 2. 13 D 1 1 0 1
14 E 1 1 1 0
15 F 1 1 1 1
With the help of this table, we can easily
convert Hexadecimal to binary.
a.(753)16 = ()2
7 0111
5 0101
3 0011
(753)16 = (011101010011)2
b.(753.42)16 = ()2
7 0111
5 0101
3 0011
4 0100
2 0010
(753.42)16 = (111101011.01000010)2
*******
Binary to Hexadecimal
a. (11110100)2 = ()16
- 3. 11110100 11110100 (right to left)
0100 2
1111 15 F
(111010)2 = (F2)16
b. (1110101)2 = ()16
1110101
01110101
0101 5
0111 7
(1110101)2 = (75)16
c. (1110101.11)2 = ()16
1110101
01110101 (add zero at left side)
0101 5
0111 7
1100 (add zero at right side)
1100 12 c
(1110101.11)2 = (75.C)16
***************