Data Representation and Compression, Page 6 (2024)

Hexadecimal Representation

  • EK 2.1.1C At a higher level, bits are grouped to represent abstractions, including but not limited to numbers, characters, and color.
  • EK 2.1.1D Number bases, including binary, decimal, and hexadecimal, are used to represent and investigate digital data.
  • EK 2.1.1F Hexadecimal (base 16) is used to represent digital data because hexadecimal representation uses fewer digits than binary.

This page has a lot of commented out text that should be read over and removed or moved. --MF, 12/18/17

Typing long strings of ones and zeros is inconvenient and prone to error. A more efficient method is to use hexadecimal (base 16). One hex digit represents any whole number between 0 an 15. So eight digits of binary can be translated into two digits of hexadecimal, which is much easier and much less error-prone for humans.

Mary should fix up the CSS in these tables some day. --MF, 12/18/17

Eight bits in base two...
27 26 25 24 23 22 21 20
128s place 64s place 32s place 16s place eights place fours place twos place ones place
...is two digits in base 16.
161 160
sixteens place ones place

For example: 12110 = 011110012 = 7916
0 1 1 1 1 0 0 1
7 9

Place value notation uses only one digit in each place. We need to represent 0 through 15, and we have digits for 0-9, so we choose A-F for the remaining values:

10 11 12 13 14 15
A B C D E F
Inbase 16, there are sixteen digits (0-9 and A-F), and each place is worthsixteentimes the place to its right.One hex digit has 16 possible values, the equivalent of four binary digits (bits).
Data Representation and Compression, Page 6 (1)

Mary, you reduced this katex with a style tag (not proper CSS) because you couldn't figure out how to make it work with CSS. Fix this later. --MF, 12/18/17

This stands for 3 \times 256 + 11\times 16 +7\times 1 or 951.

  1. Data Representation and Compression, Page 6 (2) Watch this Hexadecimal and Binary Timer Snap! program run. The top row counts in binary, the middle in decimal, the bottom in hex. Write a description of the hex counter's behavior.
    Data Representation and Compression, Page 6 (3)

Reading Hexadecimal

Base 16 uses powers of sixteen instead of powers of two or ten. Place values in hexadecimal represent the units place (160 = 1), the sixteens place (161 = 16), the two hundred fifty-sixes place (162 = 256), the four thousand ninety-sixes place (163 = 4096), etc. So, for example:

3B16 = 3 × 161 + 11 × 160 = 48 + 11 = 5910

To translate from hexadecimal (for example, 7B316) to base 10, first, write the digits on paper. Then write out the hexadecimal place values: start at the right with 1, then write 16 in the next place to the left, then write 256 (which is 162), and so on. Each new place will be worth 16 times the one to its right.

Remember: A-F cover the digits after 9:

10 11 12 13 14 15
A B C D E F
7 B 3
256 16 1
Data Representation and Compression, Page 6 (4)

So, 7B316 = (7 × 256) + (11 × 16) + (3 × 1) = 1792 + 176 + 3 = 197110.

    FF16
    = (15 × 161 + 15 × 160)10
    = (15 × 16 + 15)10
    = 25510

  1. Translate these hexadecimal numerals into base 10 notation:
    1. AF16
    2. 5D16
    3. 1816
    4. 3E816

    A numeral such as 11 means eleven in the usual decimal notation, or three if it is a binary numeral, or seventeen in hexadecimal notation. The only way you know that the "18" in part (c) above doesn't mean eighteen is that subscript "16" means hexadecimal.

Writing Hexadecimal

To translate from base 10 (for example, 29910) to base 16, first write out the hexadecimal place values by multiplying by 16 moving left from the units place until you get to a value larger than your number (4096 for this example). Then think, "My number is smaller than 4096, so I leave that place blank. But I can subtract two hundred fifty-six once, so I write a 1 there, and there's 43 left. Now, I can subtract two sixteens, and there's 11 left. And 11 is B in hex."

299
43
11
0
Data Representation and Compression, Page 6 (5)
4096 256 16 1
1 2 B

Now, read the number off: 12B16 = 29910.

  1. Translate these decimal numerals to hexadecimal notation:
    1. 59
    2. 144
    3. 229
    4. 316

Notice that the algorithms for converting between binary and decimal are the same as the algorithms for converting between hexadecimal and decimal. These algorithms can be used to convert to and from any base.

  1. Data Representation and Compression, Page 6 (6)This algorithm runs into a problem after base 36. What's the problem and what's the solution?
  2. Convert 29910 to base 7.

In the future, consider moving 8.3.3 and 8.3.4 here as TIF and removing from 8.3. --MF, 12/1/17

Data Representation and Compression, Page 6 (2024)
Top Articles
USB Ports Not Working on the Nintendo Switch Dock
Raised Floor Info | Important Considerations for Choosing Data Center Floor Tiles and Raised Floor Systems
5 Bijwerkingen van zwemmen in een zwembad met te veel chloor - Bereik uw gezondheidsdoelen met praktische hulpmiddelen voor eten en fitness, deskundige bronnen en een betrokken gemeenschap.
Craigslist Dog Sitter
ds. J.C. van Trigt - Lukas 23:42-43 - Preekaantekeningen
Cvs Devoted Catalog
True Statement About A Crown Dependency Crossword
Florida (FL) Powerball - Winning Numbers & Results
Used Wood Cook Stoves For Sale Craigslist
Nonuclub
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Nebraska Furniture Tables
Classic Lotto Payout Calculator
Stihl Km 131 R Parts Diagram
Viha Email Login
Grayling Purnell Net Worth
Epguides Strange New Worlds
Skip The Games Fairbanks Alaska
Craigslist Pearl Ms
Joan M. Wallace - Baker Swan Funeral Home
Yosemite Sam Hood Ornament
Play It Again Sports Norman Photos
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Craigslist Hunting Land For Lease In Ga
800-695-2780
UCLA Study Abroad | International Education Office
Ticket To Paradise Showtimes Near Cinemark Mall Del Norte
Wonder Film Wiki
Is Henry Dicarlo Leaving Ktla
How do you get noble pursuit?
Askhistorians Book List
Ringcentral Background
Desales Field Hockey Schedule
Moonrise Time Tonight Near Me
Smayperu
new haven free stuff - craigslist
Craigslist Lakeside Az
Skip The Games Grand Rapids Mi
Who Is Responsible for Writing Obituaries After Death? | Pottstown Funeral Home & Crematory
Foxxequeen
Pulaski County Ky Mugshots Busted Newspaper
Pink Runtz Strain, The Ultimate Guide
How Big Is 776 000 Acres On A Map
Bekkenpijn: oorzaken en symptomen van pijn in het bekken
Noga Funeral Home Obituaries
El Patron Menu Bardstown Ky
Goosetown Communications Guilford Ct
Houston Primary Care Byron Ga
Kenmore Coldspot Model 106 Light Bulb Replacement
Noelleleyva Leaks
Vrca File Converter
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6041

Rating: 4.4 / 5 (75 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.