Welcome to the...

Number Systems Generator

With any character & base-N

Generator

Select the numeric base

Insert the digits to use (any character)

Load a number system preset

How it works?

Imagine you have a bunch of different symbols, like shapes or pictures. Now, let's say you want to use these symbols to represent how many things you have. That's what a number system is all about - it's like a special language we use to talk about numbers.

Think of the number system like different sets of rules for using these symbols. The most common one we use every day is called the decimal system, which has 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. When we count past 9, we add another digit to the left, like going from 9 to 10.

But there are other number systems too, like binary (just 0s and 1s), octal (0 to 7), and hexadecimal (0 to 9 plus A to F). Each system has its own set of rules and symbols.

Base

The base of a number system determines how many different symbols (or digits) are used to represent numbers and how the value of each position changes as you move from right to left.

For example, in the decimal system, which is base 10, we have 10 digits (0 through 9), and each position represents a power of 10. So, in the number 123, the '1' represents 100 (10^2), the '2' represents 20 (10^1), and the '3' represents 3 (10^0).

Bases can be anything greater than 1, and different bases have different properties that make them useful for different purposes. For instance, binary (base 2) is essential in computer science because it directly relates to how computers store and process information.

Digits

Digits are the symbols used in a number system to represent quantities. In the decimal system, we have 10 digits (0 through 9), and each digit has a specific value depending on its position in the number.

Digits are crucial because they allow us to express any quantity by combining them in different ways. They provide a compact and efficient way of representing numbers, making arithmetic operations and other mathematical tasks much more manageable.

Together, bases and digits form the foundation of number systems, enabling us to count, measure, calculate, and communicate quantities and relationships in a structured and systematic manner.

Conversion

Example 1

Let's convert the decimal number 22 (our common number system) to binary (it's base-2, with the digits "0" and "1").

To do this, we divide 22 by 2 repeatedly, keeping track of the remainders until we reach 0.

(Preview quotient / Base) Quotient Remainder
-- 22 --
22/2 11 0
11/2 5 1
5/2 2 1
2/2 1 0
1/2 0 1
-- 0 --

Now, let's read the remainders from bottom to top: 10110. So, the binary representation of 22 is 10110.

Example 2

To convert binary to decimal, you multiply each digit by 2 raised to the power of its position from right to left and then add up the results.

For example, let's convert the binary number 10110 to decimal:

Binary Exponent Value
1 2⁴ 16
0 8
1 4
1 2
0 2⁰ 1

Now, the value of each digit in order (0 in binary is 0 in decimal, and 1 in binary is 1 in decimal, but in other cases in can variate) is multiplied to each value in the column "Value". After that, each result is added together to get only one result:

(1 * 2⁴) + (0 * 2³) + (1 * 2²) + (1 * 2¹) + (0 * 2⁰) =
= 16 + 4 + 2
= 22

So, the decimal representation of 10110 is 22.

This process can be applied to convert numbers between any two base.