A number, eight small lights
Pocket Binary Lantern
See how eight on-or-off positions can hold any whole number from 0 to 255.
Use digits 0–9, from 0 to 255. Leading zeros and surrounding whitespace are OK. No signs, fractions or spaces between digits.
42in decimal
Weights, left to right: largest (most significant bit) to smallest.
- 1280OFF
- 640OFF
- 321ON
- 160OFF
- 81ON
- 40OFF
- 21ON
- 10OFF
32 + 8 + 2 = 42
No current result. Enter decimal digits from 0 to 255.
Each lit lamp is a 1 and contributes the weight above it. Each unlit lamp is a 0 and contributes nothing. Add the lit weights to get the decimal number. The eight digits, read left to right, are its binary representation.
Lamps are a visual metaphor, not an electronics simulation. Nothing is sent or saved.