Idea · Oct 6, 2026

Nearest Representable

A playful IEEE-754 explorer where you type any number, watch it snap to the nearest float on a zoomable number line, and play short 'float golf' puzzles about why 0.1 + 0.2 misbehaves.

What it would do

Inspired by recent Show HN interactive explainers (how browsers work, a 2D/3D walk through GPT-2's internals), this is a single-page explorable for the most misunderstood number format in computing. Type a decimal and the page shows the sign, exponent and mantissa bits for float16, float32 and float64 side by side, the exact decimal value actually stored, and the error. A zoomable number line draws the representable neighbors as tick marks, so students can see the gaps double at every power of two and vanish into subnormals near zero. Bits are clickable: flip one and the value updates live. A 'float golf' mode serves short puzzles (find a number where x + 1 == x, make a loop that never terminates, sum a list in two orders and get two answers) with a timer and shareable results.

Key features

  • Live bit-level view for float16, float32 and float64 with click-to-flip bits
  • Exact stored decimal value and absolute/relative error, computed with BigInt arithmetic
  • Zoomable number line showing representable neighbors, ULP gaps and the subnormal region
  • Expression sandbox that evaluates step by step and shows rounding at each operation
  • 'Float golf' puzzle mode with shareable URL-encoded results

More in Math & Cryptography

Poincaré Paint

A drawing toy that lives in the Poincaré disk: every stroke you make is instantly replicated across a hyperbolic {p,q} tiling, so doodles become Escher-style Circle Limit patterns you can drag and re-center.

BuiltMath & CryptographyProduct for a businessOct 10, 2026

Bits per Question

Play 20 Questions against a fixed set of 500 things while every yes/no question you ask is scored live in bits of information gained, then watch an LLM and a greedy entropy bot play the same round.

Math & CryptographySide projectSmallOct 4, 2026

Bombe Bench

An in-browser Enigma you can open up and step through rotor by rotor, paired with a working Turing-Welchman Bombe that breaks messages from a crib so students see how a known-plaintext attack really worked.

BuiltMath & CryptographyProduct for a businessOct 3, 2026

Stego Arms Race

A multi-week security assignment where student teams build steganography encoders that hide messages in images and audio, then build steganalysis detectors and attack each other's submissions on a shared leaderboard.

Math & CryptographyClass assignmentLargeOct 2, 2026

All 10 ideas in Math & Cryptography →