Hexadecimal - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Hexadecimal

Description:

Hexadecimal (hex) ~ base 16 number system. Use 0 through 9 and ... A ... Make note of the result ... Example: 111010010111010101000101. Converting from ... – PowerPoint PPT presentation

Number of Views:82
Avg rating:3.0/5.0
Slides: 11
Provided by: paul181
Category:
Tags: hexadecimal | make

less

Transcript and Presenter's Notes

Title: Hexadecimal


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
  • 21000 6100 510 71
  • 2103 6102 5101 7100

4
Binary Example
  • 10112 123 022 121 120
  • 18 04 12 11
  • 8 2 1 1110

5
Hexadecimal Example
  • A4F16 10162 4161 15160
  • 10256 416 151
  • 2560 64 15 263910

6
Convert the following from hexadecimal to decimal
  • 6116 ?
  • F2316 ?
  • Now convert the above to binary...

7
Converting from Decimal to Hexadecimal
  • Given the powers of 16 1, 16, 256, 4096, etc.
  • Find the power that is just bigger than your
    number
  • Go down to the next smallest power of 16
  • Divide your number by that power
  • Round the result down
  • Make note of the result for that power of 16
  • Multiply the rounded down result by its
    corresponding power of 16and then subtract that
    from your original number
  • 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 11101010100101012 ?

9
Converting binary to hexadecimal
  • Split the binary number up into 4-bit sections
  • Determine the hexadecimal value of each section
  • Bamyoure done
  • Example 111010010111010101000101

10
Converting from hexadecimal to binary
  • Determine the 4-bit binary value for each
    hexadecimal digit
  • Bamyoure done
Write a Comment
User Comments (0)
About PowerShow.com