Adding Machine

Enter amounts one per line, like on a desk adding machine. Each line updates the running total, S prints a subtotal and T prints a total, and the whole tape downloads as CSV.

Grand total298.3

Plain numbers add. Prefix with + − × ÷ (or * / x). S = subtotal, T or = = total (starts a new section). Text after a number is kept as a note.

Grand total

298.3

  • Current running total0.3
  • Number entries6.0000
  • Totals printed1.0000
Adding machine tape
LineOperationAmountRunning totalNote
1+125.50125.5groceries
2+42.25167.75
3−18.75149refund
4Subtotal149
5×2298
6Total298
7+0.100.1
8+0.200.3

Entries are applied in tape order, the way a desk adding machine works: × and ÷ act on the running total so far, not with algebraic precedence. Addition, subtraction and multiplication are exact; division is rounded to 20 decimal places. Rounded display uses round-half-away-from-zero.

How this was calculated

0 + 125.50 = 125.5

125.5 + 42.25 = 167.75

167.75 − 18.75 = 149

Subtotal ◇ 149

149 × 2 = 298

Total ✱ 298 (running total resets to 0)

0 + 0.10 = 0.1

0.1 + 0.20 = 0.3

Grand total = sum of section totals + the open section = 298.3

How the tape works

Each line of the tape is one entry. A plain number or a number starting with + is added to the running total, and a number starting with − (or -) is subtracted. A line starting with × (or * or x) multiplies the running total, and ÷ (or /) divides it.

S on its own line prints a subtotal without changing anything. T (or =) prints a total and starts a fresh section at zero, and the grand total adds up every section. Any words after a number stay on the tape as a note, which is handy for receipts and expense lists.

Tape commands
TypeMeaning
125.50 or + 125.50Add to the running total
- 18.75Subtract
× 2 or * 2Multiply the running total
÷ 4 or / 4Divide the running total
SPrint a subtotal
T or =Print a total and start a new section

Worked example

The default tape is 125.50 groceries, + 42.25, − 18.75 refund, S, × 2, T, then + 0.10 and + 0.20.

Running totals: 125.50 → 167.75 → 149.00. The subtotal prints 149.00. Multiplying by 2 gives 298.00, and T prints that total and resets the tape. The new section is 0.10 + 0.20 = 0.30, so the grand total is 298.00 + 0.30 = 298.30.

Exact decimals and order of operations

Many calculators store numbers in binary floating point, which is why 0.1 + 0.2 can show 0.30000000000000004. This tape uses exact decimal arithmetic, so money adds up to the cent. Addition, subtraction and multiplication are exact; division is rounded to 20 decimal places.

Like a real adding machine, entries apply strictly in tape order. × 2 doubles everything above it, not just the previous number. For formulas with brackets or precedence, use the scientific calculator instead.

How to use the Adding Machine

Type your entries one per line and read the running total.

  1. Enter amounts

    Type one number per line. Prefix with −, × or ÷ to subtract, multiply or divide.

  2. Add subtotals and totals

    Put S on a line for a subtotal, or T for a total that starts a new section.

  3. Choose rounding

    Keep exact decimals or round the display to 0, 2 or 4 places.

  4. Download the tape

    Check the running totals in the tape table and download it as CSV.

Frequently asked questions

How do I subtract on the adding machine?

Start the line with a minus sign, such as - 18.75. You can also enter negative numbers after an operator, for example × -1 to flip the sign of the running total.

What is the difference between subtotal and total?

A subtotal (S) only prints the running total so far. A total (T or =) prints it and then starts a new section from zero; the grand total at the top adds every section together.

Can I save the tape?

Yes. Use Download table CSV to save every line with its operation, amount, running total and note, ready for a spreadsheet. The tape text is also kept in the page address, so copying the link shares it.

Last updated . Results are estimates for informational purposes only.