Hexadecimal Binary
Hexadecimal Binary
HEXADECIMAL
SYSTEM
Learning Objectives
2 4 A16
Note:
0 0 1 0 0 1 0 0 1 0 1 02 A 10
8 4 2 1 8 4 2 1 8 4 2 1 B 11
C 12
2 4 1 02 D 13
E 14
= 10 0100 10102 F 15
Decimal to Hexadecimal Conversion
OR
4095 / 2 = 2047 r 5 (1) 7 / 2 = 3 r 5 (1)
end
2047 / 2 = 1023 r 5 (1) 3 / 2 = 1 r 5 (1)
1023 / 2 = 511 r 5 (1) 1 / 2 = 1 r 5 (1) 1111111111112
511 / 2 = 255 r 5 (1)
start
255 / 2 = 127 r 5 (1)
Note: This method use successive division by dividing 2 of the
127 / 2 = 63 r 5 (1)
given decimal then every time you divide and there is remainder
63 / 2 = 31 r 5 (1) there is equivalent 1 in binary if there is no remainder is 0. It was
31 / 2 = 15 r 5 (1) written from the last digit to first to write in binary
15 / 2 = 7 r 5 (1)
Decimal to Hexadecimal Conversion
Then, group the binary digits into 4 bits and take the hexadecimal equivalent of each
group separately.
next
Hexadecimal to Decimal Conversion
ABC16 =?
A B C16
1010 1011 1100
Next,
1 0 1 0 1 0 1 1 1 1 0 02
Note:
211 210 29 28 27 26 25 24 23 22 21 20
A 10
2048 1024 512 256 128 64 32 16 8 4 2 1
B 11
2048 + 0 + 512 + 0 + 128 + 0 + 32 + 16 + 8 + 4 + 0 + 0
C 12
D 13
= 274810
E 14
F 15
Activity 5 : Convert hexadecimal to binary- decimal
7 8 D
1. 53D16 134110 0111 1000 1101 2
2. 5BD16 1469 10
0 1 1 1 1 0 0 0 1 1 0 1
3. 78D16 1933 10 211 210 29 28 2 2 2 2 2 2 21 20
7 6 5 4 3 2
2048 1024 512 256 128 64 32 16 8 4 2 1
1024+512+256+128+8+4+1
134110
Activity 6 : Convert binary to hexadecimal Note:
1. 1111111101 = 3FD16
A 10
2 0011 1110 1111 B 11
2. 1101101101 2 = 36D 16
3 E F C 12
3. 1111101111 2 = 3EF
16 D 13
3FD E 14
16
F 15