October 16, 2026
Dotdown™: build a calculator by typing
Building a calculator in tinymath means adding tags one at a time. If you already know the formula, that is slow. So the Customise page now has a second way in: Dotdown™, a small text format. Type the calculator into a box and it appears.
---
Bulk order price
What an order costs, with a discount above 100.
---
.input qty: Quantity positive
.input price: Price per unit (RM) positive
.r1 Subtotal (RM): qty × price
.r2 Total (RM): if qty > 100 then r1 × 0.9 else r1
Dotdown™ started in TinyForm, where it builds forms. The dot prefix, the --- info block, // comments and { } groups work the same way here. What’s new is the math: .r1, .r2 for steps, .input and .list for variables, and .constant for fixed numbers like rice.kcal. Decimal places and rounding are set with .settings { places: 2, rounding: up } — .{ } itself is reserved for visual styling, shared with TinyForm, which tinymath doesn’t have yet.
Numbers stay exact: the text is only a description, and every calculation still runs through the Rust/WASM decimal engine.
Open the box on a calculator you already have and it fills itself with that calculator as text. The Dotdown™ guide has the syntax for every command. It is in beta; if a calculator doesn’t come back the way you typed it, tell us.