Download presentation
Presentation is loading. Please wait.
1
Hexadecimal Conversions
2.6 – Representing Data
2
What is Hexadecimal? Hexadecimal is a base 16 number system: there are 16 digits, 0 to 15. As we have only 10 single digits (0-9), we use upper-case letters A to F for the remaining digits. Therefore, hexadecimal digits are represented as: ABCDEF
3
Why do we need Hexadecimal?
We need hexadecimal numbers because of our human limitations. Computers do not use or understand hexadecimal, only binary. Hexadecimal is used because we get confused with large binary numbers, so we simplify them by representing them in hexadecimal notation. If we tried to give our phone number to someone in binary, it would be really difficult, therefore humans need an easier method. Since a byte is 8-bits, it makes sense to divide that binary number into two 4-bit numbers. Since 4-bits gives you a possible range of 0-15, a Base 16 system is easier to work with. Lets look at an example…
4
Hexadecimal Number system
Denary 1 2 3 4 5 6 7 8 9 A 10 B 11 C 12 D 13 E 14 F 15 Remember that in denary (Base 10) we only have 10 single digits available to us… therefore, for Base 16 we use this representation.
5
Hex Denary 1 2 3 4 5 6 7 8 9 A 10 B 11 C 12 D 13 E 14 F 15 Hexadecimal Here is a byte (8-bits): Saying that is quite a mouthful, so its easier represented as hexadecimal. To convert the binary to hexadecimal the byte is split into two halves of 4 bits each. These are called nibbles. Each nibble is now converted into its denary number. Here are the nibbles with their place values. The denary numbers are 13 and 3. Therefore the hexadecimal representation is D3. It is far easier to remember D3 than 1 1 1 8 4 2 1 8 4 2 1
6
Lets have a go…
7
Answers… E F BB
8
Converting denary to hexadecimal
1 2 3 4 5 6 7 8 9 A 10 B 11 C 12 D 13 E 14 F 15 Here is denary number 213. To convert to hexadecimal, we must progressively divide by 16 until the result is 0 and remember the remainders. 213 ÷ 16 = 13 (remainder 5) 13 = D 5 = 5 D5
9
Lets have a go… 226 98 13 57 198 207 136
10
Answers… 226 E2 98 62 13 D 57 39 198 C6 207 CF 136 88
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.