Hexadecimal Number Representations

Learn how to represent numbers in hexadecimal base system.

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}}


We can formalize it in the following summation notation till the number n1n-1:

Ndec=i=0n1ai16iN_{\text{dec}}=\sum_{i=0}^{n-1} a_i*16^i

Get hands-on with 1200+ tech skills courses.