Search⌘ K

Hexadecimal Number Representations

Understand how hexadecimal numbering works and why it is used in debugging. Explore conversions between decimal, binary, and hexadecimal and see how this representation simplifies memory address reading in tools like GDB.

Hexadecimal representation (base sixteen)

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

A,B,C,D,E,A, B, C, D, E, and FF for ten, eleven, twelve, thirteen, fourteen, and fifteen, respectively.

Examples:

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

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