Knowledge base · From Zero to EngineerFrom Zero to Engineer
Number systems: binary, octal, duodecimal and hexadecimal
Place values as powers of the base, the symbols each system uses, and converting a number written in binary, octal, duodecimal or hexadecimal into a decimal number.
The decimal system is not the only one possible - it is simply the one we are used to. Every system rests on the same principle: a place value is a power of the base. The base and the set of symbols change, everything else stays. This lesson shows four such systems and one conversion method that works in all of them.
Number systems - the decimal number system
| 2 | 7 | 6 | 5, | 3 | 2 | 3 | |
| place values | |||||||
The place values are powers of 10, hence the decimal number system.
The binary number system (base 2)
| 1 | 0 | 1 | 1, | 1 | 0 | 1 | |
| place values | |||||||
The place values are powers of 2.
Converting a binary number to a decimal number
The small subscripts 2 and 10 indicate the bases of the two number systems.
The octal number system (base 8)
The octal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7.
| 3 | 5 | 7, | 3 | 2 | 1 | |
| place values | ||||||
The place values are powers of 8.
Converting an octal number to a decimal number
correct to three decimal places
correct to three decimal places
The duodecimal number system (base 12)
The duodecimal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, X, Λ.
| 2 | X | 5, | 1 | 3 | 6 | |
| place values | ||||||
The place values are powers of 12.
Converting a duodecimal number to a decimal number
correct to three decimal places
correct to three decimal places
The hexadecimal number system
The hexadecimal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
| 2 | A | 7, | 3 | E | 2 | |
| place values | ||||||
The place values are powers of 16.
Converting a hexadecimal number to a decimal number
correct to three decimal places
correct to three decimal places
PhiBoard is a free online whiteboard for maths
This lesson is part of it. On the board itself you can draw a number line, a graph or a figure, write a formula and solve a problem together with a teacher or a friend - live, in the browser. Our app is completely free.
Check whether you really know it
Theory is half the way. Work through a few exercises on the same material - each with a step-by-step solution, no account and no fees.
Frequently asked questions
How do you convert a binary number to a decimal number?
Multiply each digit by its place value, that is by the appropriate power of two, and add the results. For 1011.101 that gives 8 + 2 + 1 + 1/2 + 1/8, which is 11.625.
What symbols does the hexadecimal system use?
The digits 0 to 9 and the letters A to F, where A stands for ten and F for fifteen. That way each position holds sixteen different values using a single character.
What does the small subscript next to a number mean?
The base of the system the number is written in. The notation 1011₂ = 11₁₀ reads: the number 1011 in base two is 11 in base ten.
Why does the duodecimal system need extra symbols?
Because a single position has to hold twelve values, and there are only ten digits from 0 to 9. The two missing ones are written with the separate symbols X and Λ, standing for ten and eleven.