Number Systems
Number Systems and Their Decimal Equivalents
Contents
Number Systems and Their Decimal EquivalentsA. Decimal Number System
B. Binary Number System
C. Hexadecimal Number System
D. Octal Number System
E. Other Number Systems
Related topics
• Decimal Numbers – Conversion to Other Number Systems
• Conversion Between Binary Numbers and Quaternary, Octal, or Hexadecimal Numbers
• Number Conversion Tool
A number system or numbering system is a system that represents numbers in a unique manner using a specific set of symbols. For instance, the decimal system is a number system based on number 10, which is referred to as the base or basis of the system. If n is the base of a number system, then there are n distinct symbols ranging from 0 to n-1 used to represent numbers in that system. Common number systems include decimal (base 10), binary (base 2), hexadecimal (base 16), and octal (base 8).
A. Decimal Number System (Base-10 Number System)
For decimal system, the symbols (or digits) used to represent numbers in the system are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, for example, number 526 or number 526.38.
In the decimal system, number 526 can be expressed as
![]()
or
![]()
![]()
Note that the meaning and position of each digit (in red) in number 526 are defined by its respective term on the right hand side (RHS) of Eq. (A.1), whereas the base is in blue color.
Similarly, number 526.38 can be expressed as
![]()
or
![]()
![]()
Again, note that the meaning and position of each digit in number 526.38 are defined by its respective term on the RHS of Eq. (A.2), and also note that digits following the decimal point (i.e., 3, 8) have negative sign in its exponent term on the RHS.
B. Binary Number System (Base-2 Number System)
For binary system, because the base is 2, only digits 0 and 1 can be used to represent the numbers. Numbers 1101 and 1101.01 are two examples of binary numbers. Similar to Eq. (A.1), but with the base is now 2 instead of 10, binary number 1101 can be written as
![]()
![]()
which in decimal system means
![]()
or
![]()
Therefore, binary number 1101 has a value of 13 in the decimal system.
Similar to Eq. A.2, but with the base of 2, binary number 1101.01 can be expressed as
![]()
![]()
which in the decimal system means
![]()
or
![]()
or
![]()
Therefore, binary number 1101.01 has a decimal value of 13.25.
C. Hexadecimal Number System (Base-16 Number System)
For hexadecimal system, as the base is 16, there are 16 symbols (or digits) to be used to represent the numbers in this system, they are 0 to 9 and then A, B, C, D, E, F (not case-sensitive). Symbols A, B, C, D, E, F are used to replace 10, 11, 12, 13, 14, 15, respectively, because only single digit/symbol can be used. For instance, A1E and A1E.2D are two examples of hexadecimal numbers. Equivalent of A1E in the decimal system is:
![]()
substitute A with 10 and E with 14, we have
![]()
or
![]()
and the equivalent of A1E.2D in the decimal system is:
![]()
or
![]()
or
![]()
Therefore, equivalent numbers of A1E and A1E.2D in the decimal system are 2590 and 2590.175781, respectively.
D. Octal Number System (Base-8 Number System)
The Octal system has the base of 8. There are 8 digits, 0, 1, 2, 3, 4, 5, 6, 7, to be used to represent the numbers in this system. Conversion of an octal number to decimal number is carried out in the same way as for binary or hexadecimal numbers. For instance, two octal numbers 725 and 725.36 can be converted to decimal numbers as follows:

![]()
E. Other Number Systems
Theoretically, any number can be used as a base for a numbering system, and conversion of any number of any base to its equivalent decimal number follows the same method as described by Eqs A.1, A.2 or B.1, B.2 above. For example, using the described approach, quaternary numbers (base 4 numbers) 2103 and 2103.12 are found having decimal values of 147 and 147.375, respectively.
Example 1
Question: In which system is the number ‘101’ equivalent to a decimal 50?
Answer: Let x be the unknown base, where x > 0. Similar to Eq. A.1, we can write:

The base is 7, thus, the system is septenary system.
Example 2
Question: In which system is the number ’4704’ equivalent to a decimal 2500?
Answer: Let x be the unknown base, where x > 0. Similar to Example 1, we can write:
![]()
This is a cubic equation. Analytically solving polynomial equations of degree higher than 2 can be challenging. However, for number systems, there is often a simpler approach. Note the following observations:
- All bases are natural numbers greater than or equal to 2.
- The greater the base, the fewer digits are typically needed to represent the same value.
- If two numbers have the same number of digits, the smaller the number, the higher the base.
- Each digit in a number must be less than the base.
These observations significantly reduce the time and effort needed to find the unknown base. A brute-force approach may be sufficient.
In the case of the number 4704, based on the above observations, we can infer that the unknown base x is greater than 7 and less than 10 (i.e., 7 < x < 10). Therefore, x is either 8 or 9. By substituting 8 and 9 into the equation above, we find that the correct base is 8. Thus, the system is octal.
Example 3
Question: In which system is the number ‘61d8’ equivalent to the hexadecimal 41d2?
Answer: We start with a similar approach. Let x be the unknown base, where x > 0, and replace ‘d’ with 13. Then we can write:
![]()
As in Example 2, the unknown base x must be greater than 13 and less than 16 (i.e., 13 < x < 16). Therefore, x must be either 14 or 15. By testing both values, we find that the correct base is 14.
Notes:
- For fractional numbers, the fractional part could be infinite. Therefore, if you want to limit the number of digits after the decimal point, a cut-off may be required. In such cases, the number and its equivalent decimal value might not be exactly equal.
- The conversion of a decimal number to another number system is discussed in “Decimal Number Conversion to Other Number Systems“.
- In general, a number can be converted to any other number system by using the decimal system as an intermediate step. A Python code for converting a number of any base to another number system is available here. In this code, the base is limited to between 2 and 16, but users can expand it for any base greater than 16, provided a system of symbols is defined for such a base accordingly.
