Start Here — A Complete Tour
Units are first-class
continues from lesson 1 — values defined earlier in the course stay live here
Numbers can carry units, and NapkinCalc tracks them through every calculation — multiplying, dividing, and converting automatically. A unit mismatch (adding metres to seconds) becomes a visible error, which is exactly how you want a calculator to catch a slip.
= 5 km a length
= 60 km / hour a rate
= 0.083333 hour km ÷ (km/hour) cancels to a time, automatically
= 5 minute convert with the in keyword
✓ pass five minutes — the units worked out
Try writing distance + speed: NapkinCalc refuses, because a length and a rate are not the same kind of thing. That refusal is a feature.