Hexadecimal

2,233 views

Published on

Published in: Technology, Art & Photos
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,233
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Hexadecimal

  1. 1. Hexadecimal A451 – Representation of data in Computing systems
  2. 2. Get your brains logged on <ul><li>When is 20 = 14? </li></ul><ul><li>When 20 10 = 14 16 </li></ul>
  3. 3. By the end of this session: <ul><li>All of you will be able to convert positive denary whole numbers (0-255) into 2-digit hexadecimal numbers and vice versa </li></ul><ul><li>Most of you will be able to convert between binary and hexadecimal equivalents of the same number </li></ul><ul><li>A few of you will be able to explain the use of hexadecimal numbers to represent binary numbers. </li></ul>
  4. 4. Hexadecimal 0 8 1 9 2 A 3 B 4 C 5 D 6 E 7 F
  5. 5. Binary-Hex Conversion <ul><li>To convert binary to hexadecimal you need to break it down into nibbles (blocks of 4 bits). </li></ul>1000 1101 1 st nibble 2 nd nibble
  6. 6. Binary-Hex Conversion <ul><li>For example, 141 as a binary number is: 10001101 . </li></ul><ul><li>The two nibbles are 1000 and 1101 . Converting each nibble into denary we can see that 1000 = 8 and 1101 = 13. Remembering that 13 = D in hexadecimal then 141 would be represented as 8D. </li></ul>
  7. 7. Your Turn: Binary-Hex conversions <ul><li>Convert 11111111 to hex </li></ul><ul><li>Convert 11011011 to hex </li></ul><ul><li>Convert 10010011 to hex </li></ul><ul><li>Convert 11000011 to hex </li></ul><ul><li>Convert 00110110 to hex </li></ul>
  8. 8. Your Turn: Denary-Hex conversions <ul><li>Convert 40 to hex </li></ul><ul><li>Convert 64 to hex </li></ul><ul><li>Convert 140 to hex </li></ul>
  9. 9. Hex-Binary Conversion <ul><li>To convert hexadecimal to binary you just reverse the process. Convert each part of the hexadecimal number into nibbles of binary numbers. </li></ul><ul><li>For example: </li></ul>Hex 8 D Denary 8 4 2 1 8 4 2 1 Binary 1 0 0 0 1 1 0 1
  10. 10. Hex-Binary Conversion
  11. 11. Your Turn: Hex-Binary conversions <ul><li>Convert 4D to binary </li></ul><ul><li>Convert 2F to binary </li></ul><ul><li>Convert 72 to binary </li></ul><ul><li>Convert 90 to binary </li></ul><ul><li>Convert 3B to binary </li></ul>
  12. 12. Your Turn: Hex-Denary conversions <ul><li>Convert 4D to denary </li></ul><ul><li>Convert 2F to denary </li></ul><ul><li>Convert 91 to denary </li></ul><ul><li>Convert AA to denary </li></ul><ul><li>Convert F1 to denary </li></ul>

×