MathsBasic Arithmetic

Basic
calculator.

Tap or type sums on a desk-style keypad, with memory, percent and a running tape.

How it’s worked out

This calculator works the way a desk calculator does. Each time you press an operator, the step before it is finished and the total so far appears. This is called immediate execution. So the keys 2 + 3 × 4 = give 20: 2 + 3 is worked out (5) the moment you press ×, and then 5 × 4 = 20.

Written as a math expression, 2 + 3 × 4 is 14, because multiplication comes before addition. Neither answer is a fault. They follow two different rules. When the rules disagree, the answer panel shows both, and the bars under the tool show the running total after every key.

The percent key depends on the key before it. After + or −, it turns the number into that percent of the first number. After × or ÷, or on its own, it divides the number by 100.

KeysDisplayUse
1250 + 15 % =1,437.5Add 15% to 1,250
80 − 20 % =64Take 20% off 80
200 × 15 % =3015% of 200
45 ÷ 60 % =7545 is 60% of what?

Memory. M+ adds the number on the display to memory and M− takes it away. MR puts the memory back on the display, and MC empties it. Memory stays through AC, so you can total several separate sums.

Clearing. CE clears only the number you are typing, so a typo does not cost you the sum: 250 + 75 CE57 = gives 307, because the 75 was replaced by 57. AC clears the whole sum but keeps memory and the tape. DEL removes the last digit.

Worked examples

A receipt with a coupon and sales tax

Rosa buys three things for $120, $45.50 and $80. She has a $25 coupon, and her state adds 8% sales tax. She keys 120 + 45.5 + 80 − 25 × 1.08 =. The running totals are 165.5, 245.5, 220.5 and then 238.14.

Because the calculator works left to right, the × 1.08 applies to the whole $220.5 left after the coupon. That is what she wants: tax on what she pays. If the keys were read with × first, the tax would land on the coupon alone (25 × 1.08 = 27) and the total would be 218.5.

Open this example in the tool

Add a tip, then split the bill

Four friends get a bill of $86.40 and want to leave 15%. Key 86.4 + 15 % =. When you press %, the 15 becomes 15% of 86.4, which is 12.96, and = gives 99.36.

Now press ÷ 4 = to get 24.84 each. Set the decimal places to 2 and the answer reads as dollars and cents.

Open this example in the tool

Two orders kept in memory

Sam orders 12 boxes at $3 and 8 boxes at $4.50. Key 12 × 3 = to get 36 and press M+. Then key 8 × 4.5 = to get 36 and press M+ again. MR shows the total of both orders, 72. The small M on the display tells you memory holds a number.

Open this example in the tool

Reading your result

The display above the keys shows what you are typing. The small line over it shows the total so far and the operator waiting for a number, such as “245.5 −”. After =, that line shows the whole sum you keyed.

The answer panel shows the running total while a sum is open and the result once you press =. The tile “With × and ÷ first” appears when a sum has two or more operators. If it differs from the result, the order of your keys changed the answer.

Decimal places change only how the result is shown. Pick 2 for money or 0 for counts. The calculator keeps the full value, so the next step is not thrown off by rounding.

The display hides tiny binary errors. Computers store decimals in binary, so 0.1 + 0.2 is really 0.30000000000000004 inside. The display shows 0.3, and 1 ÷ 3 × 3 = gives 1 because the full value of 1 ÷ 3 is kept. You can type up to 15 digits per number. Results of 10¹⁵ or more, or below 10⁻⁹, switch to e notation.

Error means the step has no answer, such as dividing by zero. Press AC or start typing a new number to carry on.

Common mistakes

  • Expecting × to go first. 2 + 3 × 4 = gives 20 here, not 14. To multiply one item only, do that item first: 3 × 4 + 2 = gives 14.
  • Using % after × to add tax. 80 × 8 % = gives 6.4, which is the tax alone. To get the price with tax, key 80 + 8 % = and you get 86.4.
  • Pressing AC to fix one wrong number. AC throws the whole sum away. CE clears just the number you are typing, and DEL removes one digit.
  • Rounding halfway through. Type the full figures and round only at the end with the decimal places switch. Cutting 1 ÷ 3 to 0.33 and then multiplying by 3 gives 0.99, not 1.
  • Forgetting what is in memory. M+ adds to whatever memory already holds. Press MC before you start a new total; the M on the display shows memory is in use.

Questions people ask

No. It works left to right like a handheld desk calculator, finishing each step when you press the next operator, so 2 + 3 × 4 gives 20. When order of operations would give a different answer, the result panel shows that value too (14 in this case).

Sources

  • IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic (double precision binary64)
  • Ron Larson, Elementary Algebra, 6th edition (Cengage, 2013), section 1.5 (order of operations)
  • Wikipedia, Calculator input methods