SDD Topic has been refreshed!
The hexadecimal system is a base 16 system. It has 16 symbols 0-F
A=10 B=11 C=12 D=13 E=14 F = 15
It is used in:
Memory addresses
Colour codes
MAC (Media Access Control Address) these are identifiers used in a devices NIC ( Network Control Card)
(11*160) + (4*161) + (10 * 162)= (11* 1) +(4*16) + (10*256) = 11 + 64 + 2560 = 2,635
A reminder of the values associated with a hex character
The Hex number A2
In decimal this would be:
2 * 160 = 2 * 1 = 2
A * 161 = 10 * 16 = 160
Final Number = 160 + 2 = 162
The Hex number B6F7
In decimal would be:
7 * 160 = 7 * 1 = 7
F * 161 = 15 * 16 = 240
6 * 162 = 6 * 256 = 1536
B* 163 = 11 * 4096 = 45056
Final Number = 160 + 16 = 46839
Similar to converting decimal to binary we will divide by the base and then use the remainder as our hex digit.
Let’s look at the same example 162:
162/16 = 10 r 2
10/16 = 0 r 10 so in hex 10 is represented by A
Hexadecimal value = A2
Convert the following hexadecimal numbers to decimal integers:
A8
C0F
D ABCE
7F 0C3A
FF FFFF
A8 = 168
C0F = 3087
D ABCE = 895,950
7F 0C3A = 8,326,202
FF FFFF = 16,777,215
Convert the following decimal numbers to hex:
15
65
267
4065
15 = F
65 = 41
267 = 10B
4065 = FE1