Download presentation
Presentation is loading. Please wait.
Published byMarvin Preston Modified over 9 years ago
1
Hexadecimal
2
Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15
3
Decimal Example 2657= 2000 + 600 + 50 + 7 = 2*1000 + 6*100 + 5*10 + 7*1 = 2*10 3 + 6*10 2 + 5*10 1 + 7*10 0
4
Binary Example 1011 2 = 1*2 3 + 0*2 2 + 1*2 1 + 1*2 0 = 1*8 + 0*4 + 1*2 + 1*1 = 8 + 2 + 1 = 11 10
5
Hexadecimal Example A4F 16 = 10*16 2 + 4*16 1 + 15*16 0 = 10*256 + 4*16 + 15*1 = 2560 + 64 + 15 = 2639 10
6
Hexadecimal Decimal 61 16 = ? F23 16 = ? Now convert the above to binary...
7
Decimal Hexadecimal 1. Given the powers of 16: 1, 16, 256, 4096, etc. 2. Find the power that is just bigger than your number 3. Go down to the next smallest power of 16 4. Divide your number by that power 5. Round the result down 6. Make note of the result for that power of 16 7. Multiply the rounded down result by its corresponding power of 16…and then subtract that from your original number 8. Using the result from Step 7, repeat Steps 1-7 until you reach 0
8
So why do we use hex? Binary is annoying to read Hexadecimal is slightly easier Binary Hexadecimal is painless Example: 1110101010010101 2 = ?
9
Binary Hexadecimal 1. Split the binary number up into 4-bit sections 2. Determine the hexadecimal value of each section 3. Bam…you’re done Example: 111010010111010101000101
10
Hexadecimal Binary 1. Determine the 4-bit binary value for each hexadecimal digit 2. Bam…you’re done
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.