Understanding rounding
Rounding is the art of throwing away precision you do not need, without throwing away the truth. A price of $19.955 does not need three decimal places on a receipt; a measurement of 3.746 metres is honestly reported as 3.75 when two decimal places are enough; a test score of 87.5% reads more cleanly as 88%. But the moment you round, a question appears: what happens to a number that sits exactly halfway between two rounded values?
Formula and method
If the digit is 6–9, round up
Half-up (this calculator's convention): a halfway value rounds away from zero — up for positive numbers
To round to a given place, look at the digit immediately to the right of that place: If the digit is 0–4, round down (the rounding digit stays the same and everything after it is dropped). If the digit is 6–9, round up (the rounding digit increases by one). If the digit is exactly 5 followed by nothing (a true halfway value), apply the tie rule. Half-up (this calculator's convention): a halfway value rounds away from zero — up for positive numbers. So 2.5 → 3 and 0.125 → 0.13 at two decimal places. Half-even (banker's rounding): a halfway value rounds to the nearest even number. So 2.5 → 2, 3.5 → 4 and 0.125 → 0.12 at two decimal places. This rule is used in statistics and some financial software because, over many roundings, the ups and downs balance out instead of drifting upward. A warning about decimal arithmetic: a value like 2.675 cannot be stored exactly in binary floating point, so some software rounds it to 2.67 instead of the half-up answer 2.68. That is a storage quirk, not a rounding rule — the exact decimal value 2.675 rounds half-up to 2.68.
Worked example
Example 1 — Rounding to two decimal places Round 3.746 to two decimal places, and round 19.955 to two decimal places. For 3.746, the digit after the second decimal place is 6, which is above 5, so round up: 3.75 For 19.955, the digit after the second decimal place is 5 followed by nothing — a true halfway value. Half-up rounds it up: 19.96 Under half-even, 19.955 would also round to 19.96, because the digit before the 5 is 5 (odd), and half-even rounds a halfway value to the even neighbour — here 6 is even, so it rounds up. The two rules agree here and disagree only when the digit before the 5 is even. Money is the most common use of this example: prices are kept to two decimal places, and a third decimal of 5 or more pushes the cents up by one.