A one-line Python quiz stumps the timeline: does 0.1 + 0.2 == 0.3?
cneuralnetwork · x · 2026-11-29
cneuralnetwork posts a one-line Python quiz: what does print(0.1 + 0.2 == 0.3) output? The answer is False — binary floating point can't represent 0.1 or 0.2 exactly, so the sum lands at 0.30000000000000004. A classic precision gotcha that keeps tripping people up.
More from Fun
- 'GPT-6.2 Astra' goes full gibberish: agent stalls after an hour, context overflow suspected — Oplivion · 2026-11-29
- Claude's voice model breaks on "kekekekekeke" and enters sicko mode — rickasaurus · 2026-11-29
- Back muscle shapes explained: A-shape vs V-shape drawing guide — Promptmethus · 2026-11-29
- Particle demo author laments bitrate crushing his showcase clips — ilumine_ai · 2026-11-29
- Claude Sonnet builds endless cinematic train ride in pure three.js code — prasenx · 2026-11-29
- Classic textbook puzzle: which is larger, e^π or π^e, without a calculator? — cneuralnetwork · 2026-11-29