Alternative Number Systems

Alternative number systems are used in computing to simplify the work that the computer has to do to use the values given to it. The most common alternative number systems in computing are

  • Binary
  • Hexadecimal (or just Hex)
  • And of course decimal

Number system bases

Different number systems can be defined in terms of their base. The decimal system is base 10, basically meaning it has 10 unique digits: . But it also means that every number can be represented as a sum of powers of 10.


For example, lets take a random number like 2537. You probably learned in elementary school that this number has a ones place, tens place, hundreds place, and thousands place.

2537
thousandshundredstensones

You can see if we add up all these places defined in terms of powers of 10 we get our original number:


This can be done with any base, not just 10. To get a number in binary we can use base 2. We also notice there are only 2 unique digits in binary: 1 and 0. In hex there are 16 unique digits.

Binary

Binary is the base 2 number system represented using 1s and 0s. See more here: Binary

Hexadecimal

Hexadecimal is the base 16 number system represented using the digits: .

The letters in this system actually represent numerical digits, however since we only have 10 digits mathematicians decided to substitute with letters instead. Here is a table showing the relationship between these letter digits and their decimal values:

Hex DigitDecimal Value
A10
B11
C12
D13
E14
F15

Decimal

Decimal is the number system we use every day. It is not the correct system but rather just the one that humans happened to decide to use first. There are many theories why, but the most simple one is just that humans have 10 fingers. this made it natural to represent numbers by groups of 10 using 10 unique digits (in fact our fingers are also called digits!).