Calculator guides and explainers

The reasoning behind the numbers: how the formulas work, where they come from, and where they stop being true.

Aug 6, 2026 · 3 min read

How to Build a Calculator in JavaScript

A working browser calculator in about a hundred lines, and the operator-precedence problem that breaks almost every first attempt.