CalcHub

Calculator

Key in 2 + 3 × 4 on a phone calculator app and on a desk calculator, and there is a good chance one says 14 and the other says 20. Neither is faulty — they simply work differently. This calculator behaves like a desk calculator: it is an immediate-execution calculator, which finishes the pending step the moment you press an operator, so it answers 20. It has the four basic operations plus % and ± keys, accepts keyboard input, and rounds every result to 12 significant digits so the tiny binary errors behind sums like 0.1 + 0.2 never reach the display. Below are the misunderstandings this design tends to cause, with real key sequences showing how to avoid them.

0

Examples

Splitting a grocery bill three ways

You buy items costing 12,800, 8,900, and 23,500 (in won) and want to split the total between three people. Just press 12800 + 8900 + 23500 ÷ 3 =. Because pressing ÷ first locks in the running total of 45,200, the calculator effectively works out (12,800 + 8,900 + 23,500) ÷ 3 without any brackets and shows 15,066.6666667. On a calculator that applies operator precedence, the same keys would divide only 23,500 by 3 and give a meaningless 29,533.33…. Rounded to whole won, collecting 15,067 each leaves 1 won over, while 15,066 each leaves you 2 won short.

Getting a 20% discount price with the % key

To find the price of a 45,000 won item at 20% off, pressing 45000 − 20 % = gives 44,999.8. That is because this calculator's % key simply divides the number on screen by 100: 20 turns into 0.2, and the calculator works out 45,000 − 0.2. Press 45000 × 20 % = to get the discount itself (9,000) and 45000 × 80 % = to get the sale price (36,000). In other words, % only means 'percent of' when it follows a multiplication. If you work with discounts and percentage changes a lot, the percentage calculator will save you mistakes.

Comparing milk prices per 100 mL

Which is cheaper: 1.8 L for 4,980 won or 900 mL for 2,780 won? Compare the price per 100 mL. 1.8 L is 18 lots of 100 mL and 900 mL is 9, so 4980 ÷ 18 = gives 276.666666667 and 2780 ÷ 9 = gives 308.888888889 — the large carton is about 32 won cheaper per 100 mL. The long decimals appear because neither division comes out even, and since the display holds 12 significant digits, a three-digit whole part leaves room for nine decimals. For a price comparison, reading them as 277 and 309 won is plenty. Converting to a common unit first (18 rather than 1.8) also removes the chance of mistyping a decimal point.

Same keys, what this calculator shows

Keys pressedResult hereWhy
2 + 3 × 4 =20Pressing × locks in 2 + 3 = 5 first (an expression calculator gives 14)
10 − 4 ÷ 2 =310 − 4 = 6 is worked out first, then divided by 2 (an expression calculator gives 8)
200 + 10 % =200.1% only turns 10 into 0.1; it does not add 10% of 200
45000 × 20 % =9,000After a multiplication, % reads as '20% of 45,000'
0.1 + 0.2 =0.3The internal 0.30000000000000004 is rounded at 12 digits
1 ÷ 3 × 3 =0.9999999999991 ÷ 3 is rounded to 0.333333333333 before multiplying
123456789 × 987654321 =121,932,631,113,000,000The exact 121,932,631,112,635,269 rounded to 12 significant digits
5 ÷ 0 =ErrorDividing by zero shows 'Error'; pressing a digit starts a new calculation

Every result was checked against this calculator's own logic. The display adds thousands separators and shows negative numbers with a − sign.

FAQ

I typed 2 + 3 × 4 and got 20 instead of 14. Is the calculator wrong?
On my desk calculator 200 + 10 % gives 220. Why is it 200.1 here?
1 ÷ 3 × 3 shows 0.999999999999, not 1. Why?
How many digits can I enter, and how are very large or small numbers shown?
Which keys work from the keyboard?

Two ways to calculate: immediate execution and expression entry

An immediate-execution calculator settles the result every time you press an operator and applies the next number to that result. Shop tills and accounting desk calculators have long worked this way because it suits running totals: add up the amounts on a receipt one after another, then divide by the number of people at the end. The display only ever holds the current intermediate result, which makes the flow easy to follow. Even after = shows a result, pressing an operator straight away carries on from it, so 2 + 3 = followed by + 4 = gives 9.

An expression calculator takes the whole expression first and then evaluates it using operator precedence, handling multiplication and division before addition and subtraction. Many default smartphone calculator apps work this way, as does the scientific calculator on this site, and because they accept brackets you can copy an expression from a textbook as written. The two approaches give different answers to the same key presses purely because of this difference in order.

Neither is more correct; they suit different jobs. Everyday arithmetic that adds and subtracts amounts before dividing is actually easier on an immediate-execution calculator, while formulas that mix multiplication and addition are safer on an expression calculator. If you press the wrong operator here, just press the right one straight away and it replaces the first: 100 + × 5 = is treated as 100 × 5 and gives 500.

How far can you trust the digits on screen?

Computers store numbers in binary, and a value as tidy as 0.1 in decimal becomes an endlessly repeating fraction in binary. Without rounding, 0.1 + 0.2 comes out as 0.30000000000000004 and 230000 × 1.1 as 253000.00000000003, with stray digits at the end. Ordinary number arithmetic in a web browser has exactly this property.

This calculator rounds each result to 12 significant digits, which removes those stray digits, so you see 0.3 and 253,000. The price is that anything beyond 12 digits is discarded: 1 ÷ 3 × 3 shows 0.999999999999, and a multiplication such as 123456789 × 987654321, whose exact result runs to 18 digits, keeps only the first 12 and fills the rest with zeros.

For money, that precision is enough in the vast majority of cases. Whole-number results of up to 12 digits — anything below one trillion — are exact to the unit, but from 13 digits onward the last digits are rounded, so even 1000000000000 + 1 = shows 1,000,000,000,000 rather than 1,000,000,000,001. If you need ledgers in the tens of trillions to balance to the last unit, use a tool that lets you control precision.

Habits that prevent mistakes

First, when multiplication and division are mixed, multiply first and divide last. That avoids an uneven quotient in the middle of the calculation, so 1 × 3 ÷ 3 = gives exactly 1 with no rounding error creeping in. Second, convert to a common unit before you start: comparing 1.8 L with 900 mL as 18 and 9 lots of 100 mL removes the risk of dropping a decimal point.

Third, pair % with multiplication. Remember 'price × 80 %' as the 20%-off price and 'price × 110 %' as the price after a 10% increase, and you will never get a strange answer from putting % after an addition or subtraction. Fourth, on long calculations check the intermediate result now and then. After =, an operator carries on from the result, a digit starts a new calculation, and ± or % applies to the result itself. When you want to start over, wipe everything with the AC button or the Escape key first.