Notepad Calculator

This is a scratchpad rather than a single-answer calculator: you write one calculation per line and each line can use the lines above it. Store a value with a name, point at an earlier line with line1 to line8, use prev for the line before, or use sum, count and avg for the running total, and add a note after a hash. Percentages behave the way people write them, so 200 plus 10% is 220 while 10% of 200 is 20. A line it cannot read reports what went wrong and the other lines still run.

One calculation per line. A later line can use a name set above it, the result of any earlier line, or the running total.

Display only. Trailing zeros are trimmed, so a whole answer stays whole, and the full value is what later lines use.
Widget