The Penguin Café is packed today. Snowflakes drift past the windows, mugs of hot krill cocoa steam on the tables, and Chef Pebble bangs a spoon against an ice cup.
Chef Pebble: "Alright everyone, flippers off the pastries! Today's talk is about numbers. Not fish. Not pebbles. Binary numbers."
Gini and Karl slide to the front, knocking over Flip and Flipflop on the way. Pip is already asleep. Penguin Waddle is counting chairs. In binary.
Gini: "Humans use ten fingers, so they count in base 10."
Karl: "Penguins have flippers. We count in fish."
Gini: "And computers?"
Karl: "They only understand 0 and 1."
Chef Pebble nods wisely. "Zero fish. Or one fish. A perfect system."
In binary, every position is a power of 2. Karl calls them "magic ice blocks." Each block is either frozen (1) or missing (0).
| 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
| 256 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Flip: "So how do we turn binary into normal numbers?"
Gini: "Easy! We melt the ice blocks and add them up."
Penguin Waddle: "That's five fish."
011 = 1*20+ 1*21+0*22= 1 + 2 =3Pip (waking up): "Three fish? I'm listening."
101010 = 0*20+ 1*21+0*22+1*23+ 0*24+1*25= 2+8+32=42Karl: "42 fish. The meaning of life." Everyone nods.
Chef Pebble: "And what if we start with a normal number?"
Gini: "Then we divide. Again. And again. Until the number gives up."
The presentation ends. Applause echoes through the ice cave. Chef Pebble smiles.
Chef Pebble: "Very nice. Now... can someone build a converter?"
Gini and Karl exchange a look.
Gini: "We already did."
Type a frosty number below (binary like 1010 or decimal like 42):
Copyright © 2004-2026 Katja Socher, tuxgraphics.org