Rounding Rules Explained: Half Up, Banker's Rounding, Floor, Ceiling and Truncate
Why 2.5 can round to 2 or 3: a clear guide to the main rounding rules, significant figures, nearest multiples and why calculators disagree on 2.675.

Rounding Rules Explained: Half Up, Banker's Rounding, Floor, Ceiling and Truncate
Rounding feels like the easiest topic in maths until two tools give two different answers. A spreadsheet says one thing, a programming language another, and the textbook a third. The reason is simple: there is more than one rounding rule, and each is correct for its own purpose. This guide walks through the rules, shows where they disagree and explains how to pick one. The rounding and number functions workbench lets you apply all of them to a list of numbers at once.
The anatomy of a rounding
Every rounding has three parts:
- The place you round to: a number of decimal places, a place value such as hundreds, or a count of significant figures.
- The dropped part: the digits after that place.
- The rule: what to do with the kept digits given the dropped part.
The only interesting cases are when something is dropped, and the really interesting ones are exact ties, where the dropped part is exactly half a unit.
The rules one by one
Round half away from zero. The school rule. If the first dropped digit is 5 or more, increase the size of the kept number: 3.45 → 3.5 and −3.45 → −3.5.
Round half up. Ties go towards plus infinity. It matches half away from zero for positive numbers but sends −3.45 to −3.4.
Round half down. The mirror image: ties go towards minus infinity.
Round half to even (banker's rounding). Ties go to whichever neighbour ends in an even digit: 2.5 → 2, 3.5 → 4, 0.125 → 0.12. Over many values, half of the ties go up and half go down, so sums are not biased upwards. That is why it is the default in IEEE 754 floating point and in many statistical and financial systems.
Floor. Always towards minus infinity: 2.9 → 2 and −2.1 → −3.
Ceiling. Always towards plus infinity: 2.1 → 3 and −2.9 → −2.
Truncate. Chop the digits off, which moves towards zero: 2.9 → 2 and −2.9 → −2.
A quick comparison table
| Number | Half away | Banker's | Floor | Ceiling | Truncate |
|---|---|---|---|---|---|
| 2.5 | 3 | 2 | 2 | 3 | 2 |
| 3.5 | 4 | 4 | 3 | 4 | 3 |
| −2.5 | −3 | −2 | −3 | −2 | −2 |
| 2.7 | 3 | 3 | 2 | 3 | 2 |
Paste these numbers into the workbench, tick the five rules and you will get exactly this table, with the disagreeing rows in bold.
Why your calculator says 2.675 → 2.67
Computers store most decimals in binary, and 2.675 cannot be represented exactly. It is stored as 2.67499999999999982236431605997495353221893310546875, just below the tie, so a two-decimal rounding gives 2.67. Textbook answers assume the decimal you wrote is exact, giving 2.68. The workbench does its arithmetic on the decimal digits themselves, so it agrees with the textbook. If you are writing code and need decimal behaviour, use a decimal type rather than floating point.
Significant figures
To round to significant figures, start counting at the first non-zero digit. 0.0004567 to two significant figures is 0.00046: the zeros at the front only show where the decimal point is. Trailing zeros that are significant must be kept, so 9.996 to three significant figures is 10.0, not 10. Writing 10 would claim only two significant figures.
Nearest multiples
Many real roundings are to a multiple rather than a decimal place: cash to the nearest 5 cents, time to the nearest quarter hour, prices to the nearest 99. The method is to divide by the multiple, round to a whole number and multiply back. 7.3 to the nearest 0.25 is 7.25 because 7.3 ÷ 0.25 = 29.2, which rounds to 29, and 29 × 0.25 = 7.25.
Choosing a rule
- Homework and exams: half away from zero unless told otherwise.
- Finance and statistics with many ties: banker's rounding to avoid bias.
- "How many boxes do I need?": ceiling.
- "How many full boxes can I fill?": floor.
- Converting to an integer in code: usually truncation; check your language.
Practising
Use the practice tab for instant feedback, or print a worksheet with a matching answer sheet. About half of the generated questions are exact ties, so they test the rules rather than plain rounding.
Limits
The workbench reads ordinary decimals and e-notation. It does not follow a particular exam board's conventions on stating the degree of accuracy, and it cannot tell you which rule your teacher, bank or software uses: check the documentation or mark scheme. Rounding during intermediate steps of a calculation can change a final answer, so keep full precision until the end.


