Search⌘ K
AI Features

Hexadecimal Number Representations

Explore the fundamentals of hexadecimal number representation as part of understanding number systems. Learn how hexadecimal relates to binary and decimal, and why it is used for compact representation of memory addresses in debugging environments like GDB.

Hexadecimal representation (base sixteen)

If we can count up to 16, 12 stones fit in one group but we need more symbols:

A,B,C,D,E,A, B, C, D, E, and FF for 10, 11, 12, 13, 14, and 15 respectively:

Example 1

12dec=C  12_{\text{dec}} = C\space\space in hexadecimal representation (notation)

Example 2

123dec=(7161+11160)dec=(7B)hex123_{\text{dec}} = (7*16^1 + 11*16^0)_{\text{dec}} = (7B)_{\text{hex}} ...