Number Bases
Explore how positional number systems work. Pick a base, adjust digits at each position, and see how they contribute to the decimal value.
Decimal (Base-10) Value
0
0b000000002 = 010
How Binary (Base-2) Works
Binary is a base-2 number system that uses 2 digits: 0, 1. Each digit position represents a power of 2, starting from 20 on the right.
To convert to decimal, multiply each digit by its place value and add them up:
1 0 1 1 (binary)
= 1×2³ + 0×2² + 1×2¹ + 1×2⁰
= 8 + 0 + 2 + 1
= 11 (decimal)
With 8 digits in base 2, you can represent values from 0 to 255 (256 unique values).