What is a number system
A number system is a way of writing numbers using a specific set of symbols and rules. All the numbers we commonly use are written in the decimal number system, which uses 10 digits (from 0 to 9). However, there are many other systems, each having its own base (or radix). The base of a system shows the number of distinct symbols used to represent numbers.
For example:
- In the binary system — 2 symbols:
0and1. Used in computing. - In the octal system — 8 symbols: from
0to7. - In the decimal system — 10 symbols: from
0to9. Used in everyday life and is the most common system. - In the hexadecimal system — 16 symbols: from
0to9and fromAtoF, whereA = 10,B = 11, …,F = 15. Common in modern computers. For example, colors are often specified in hexadecimal. The color blue is#0000FF.
In more extended systems (for example, base-36) digits and Latin letters are used, where:
A = 10, B = 11, …, Z = 35.
How conversion between number systems works
To convert a number from decimal to a base system:
- Divide the source number by the base .
- Record the remainder of the division.
- Repeat division on the integer quotient until it becomes zero.
- Write the recorded remainders in reverse order — that is the result.
To convert a number from one base to another, it is common to first convert the number to decimal, and then to the desired base.
How to convert step by step
Step 1. Convert to the decimal system
Suppose we have the number .
Calculate using the formula:
Step 2. Convert from decimal to octal
Let’s convert to octal.
| Division | Integer quotient | Remainder |
|---|---|---|
| 22 ÷ 8 | 2 | 6 |
| 2 ÷ 8 | 0 | 2 |
Result:
Main number systems
| Base | Name | Symbols used | Example |
|---|---|---|---|
| 2 | Binary | 0, 1 | 1011₂ = 11₁₀ |
| 8 | Octal | 0–7 | 127₈ = 87₁₀ |
| 10 | Decimal | 0–9 | 245₁₀ |
| 12 | Duodecimal | 0–9, A, B | 1A₁₂ = 22₁₀ |
| 16 | Hexadecimal | 0–9, A–F | 1F₁₆ = 31₁₀ |
| 36 | Base-36 | 0–9, A–Z | Z₃₆ = 35₁₀ |
Table of symbols for bases up to 36
| Value | Symbol | Value | Symbol | Value | Symbol |
|---|---|---|---|---|---|
| 0 | 0 | 12 | C | 24 | O |
| 1 | 1 | 13 | D | 25 | P |
| 2 | 2 | 14 | E | 26 | Q |
| 3 | 3 | 15 | F | 27 | R |
| 4 | 4 | 16 | G | 28 | S |
| 5 | 5 | 17 | H | 29 | T |
| 6 | 6 | 18 | I | 30 | U |
| 7 | 7 | 19 | J | 31 | V |
| 8 | 8 | 20 | K | 32 | W |
| 9 | 9 | 21 | L | 33 | X |
| 10 | A | 22 | M | 34 | Y |
| 11 | B | 23 | N | 35 | Z |
Example 1. Convert a decimal number to hexadecimal
| Division | Integer quotient | Remainder |
|---|---|---|
| 120 ÷ 16 | 7 | 8 |
| 7 ÷ 16 | 0 | 7 |
Divide 120 by base 16 and write down the remainders until the quotient is zero. Write the remainders in reverse order:
Example 2. Convert 12345₁₀ to base-36
| Division | Integer quotient | Remainder |
|---|---|---|
| 12345 ÷ 36 | 342 | 33 → X |
| 342 ÷ 36 | 9 | 18 → I |
| 9 ÷ 36 | 0 | 9 |
Now write the sequence of remainders in reverse order:
Example 3. Conversion between arbitrary bases
Convert to hexadecimal.
- First find the decimal value:
- Convert 13₁₀ to hexadecimal: Remainder of dividing
Result:
Historical fact
The first number systems appeared long before our era.
The ancient Sumerians used a sexagesimal system (base 60) — this is why there are 60 minutes in an hour and 60 seconds in a minute.
Later, the Egyptians and Romans used decimal and vigesimal (base-20) systems in their records, and the idea of positional notation was fully developed in India and transmitted to Europe by Arabic scholars.
Notes
- When entering a number, use only the symbols allowed for the chosen base.
- Letter values for digits start with
A=10,B=11up toZ=35. - The converter automatically checks the validity of the entered data and instantly provides the result with a detailed explanation in tabular form.
Frequently Asked Questions
How to convert the number 255 from decimal to hexadecimal?
| Division | Integer quotient | Remainder |
|---|---|---|
| 255 ÷ 16 | 15 | F |
| 15 ÷ 16 | 0 | F |
Result:
How to convert 101010₂ to decimal?
How to convert 42₁₀ to octal?
| Division | Integer quotient | Remainder |
|---|---|---|
| 42 ÷ 8 | 5 | 2 |
| 5 ÷ 8 | 0 | 5 |
Result:
How to represent 999₁₀ in base-12?
| Division | Integer quotient | Remainder |
|---|---|---|
| 999 ÷ 12 | 83 | 3 |
| 83 ÷ 12 | 6 | 11 → B |
| 6 ÷ 12 | 0 | 6 |
Result:
What is the maximum base supported by this converter?
This converter supports conversions for number systems from 2 to 36.
This covers all possible combinations of digits and Latin letters (0–9, A–Z).