calculator.onl
Categories50

Ten-key adding machine with editable tape

Use a numeric keypad, review exact decimal arithmetic on an editable tape, undo changes and print the results.

A worked example

Add 12.50 and 7.25, then enter a 2.00 refund. Follow the total on the tape.

Last displayed tape result17.75Completed totals plus open balance17.75Arithmetic entries3Completed total lines1
One line per action: + 12.50, - 2, * 1.05, / 3, S (subtotal), or T (total). A signed amount is allowed after the operation. S preserves the accumulator; T records and clears it. Blank tape equals zero. Edits recompute every dependent line. All amounts and balances use the selected currency; multiplication and division operands are dimensionless factors.

Number of decimal places retained after each arithmetic line, from 0 through 8. This is an arithmetic policy, independent of a currency’s customary minor unit.

Nearest ties-to-even selects the even last retained digit; nearest ties-away increases magnitude at an exact half; truncation discards toward zero. Rounding is applied after each arithmetic operation.

Updates as you type

Use the stated ranges and input grammar. Enter finite values and decimal dots. Inactive fields are ignored.

YOUR RESULT

Last displayed tape result

$17.75

Calculated from your inputs

Completed totals plus open balance$17.75
Arithmetic entries3
Completed total lines1
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

The changed subtraction affects the final total while the earlier subtotal on the tape remains available for comparison. Change “Editable operation tape” from [+ 12.50] [+ 7.25] [S] [- 2.00] [T] to [+ 12.50] [+ 7.25] [S] [- 4.00] [T] and keep the other inputs from the worked example. The value for “Last displayed tape result” goes from $17.75 to $15.75. For a related calculation, try Big number calculator with exact decimals.

What to enter

InputWhat it meansExample value
Editable operation tapeOne line per action: + 12.50, - 2, * 1.05, / 3, S (subtotal), or T (total). A signed amount is allowed after the operation. S preserves the accumulator; T records and clears it. Blank tape equals zero. Edits recompute every dependent line. All amounts and balances use the selected currency; multiplication and division operands are dimensionless factors.+ 12.50 + 7.25 S - 2.00 T
Decimal places after each operationNumber of decimal places retained after each arithmetic line, from 0 through 8. This is an arithmetic policy, independent of a currency’s customary minor unit.2
Rounding ruleNearest ties-to-even selects the even last retained digit; nearest ties-away increases magnitude at an exact half; truncation discards toward zero. Rounding is applied after each arithmetic operation.Nearest · ties to even

How the calculation works

  1. Start the accumulator at zero. Apply each tape operation to it in written order using exact scaled integers.
  2. Round every arithmetic result with the selected policy. Record S without clearing, or record T and clear before the next operation.
  3. Edit any row to recompute all later results. Grand total is the sum of completed totals and the remaining open balance; undo and print are available beside the keypad.
The formulaaₖ = round(aₖ₋₁ ◦ xₖ); S: a unchanged; T: record a, then reset

A worked example

Our example: +12.50, +7.25, S, −2.00, T records subtotal 19.75 and total 17.75. There are three arithmetic entries and one completed total.

Example you can load

What to enter
Result for this example · Last displayed tape result$17.75

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

An adding-machine workflow, not a model of every physical calculator. Up to 100 lines, 20 integer input digits, eight fractional input digits and 100 scaled result digits. Each operation rounds immediately to 0–8 selected decimal places. The tape stays in this page session; no account, upload or automatic permanent saving. Arithmetic follows tape order with no algebraic precedence.

Frequently asked questions

What happens when I press Total?

T prints the current balance into the tape and resets the accumulator for the next arithmetic entry. The main result still shows the recorded total until another action changes it.

Does editing a line update later totals?

Yes. Editing either a row input or the full tape reruns the entire sequence, including all subtotals and completed totals. Undo restores a prior tape state.

Why can summing rounded lines differ from rounding once at the end?

Rounding occurs after each operation. With two decimal places and ties-to-even, adding 0.005 to zero rounds to 0.00 each time. Select a larger precision if you need those fractions retained.