Rounding Rules Explained: Half Up, Banker's, Floor and Ceiling

How rounding really works: decimal places vs significant figures, what happens at exactly .5, banker's rounding, floor and ceiling, and double-rounding traps.

Updated September 29, 2026 6 min read

Use the free Rounding CalculatorRound to decimal places, significant figures or the nearest 10, 100 or 0.5

Rounding seems like the simplest thing in arithmetic: look at the next digit, and if it is 5 or more, round up. Then you notice that a spreadsheet, a programming language and a till receipt disagree about the same number, or that a column of rounded values no longer adds up to the rounded total. The reason is that there is not one rounding rule but about ten, and they differ precisely in the cases that matter.

This guide explains what you are choosing when you round: where to round (decimal places, significant figures or a multiple such as 0.05) and how to break ties at exactly half. It also covers the floating-point surprise behind 2.675 and the double-rounding trap. Every example was checked with our calculator.

Step 1: choose where to round

Decimal places

Rounding to n decimal places keeps n digits after the point. 3.14159 to 2 places is 3.14. This is the natural choice for money and for measurements in fixed units.

You can also round to the left of the point. Rounding to −2 decimal places means rounding to the nearest hundred: 1,234.5678 becomes 1,200.

Significant figures

Significant figures count from the first non-zero digit, wherever the point is. This keeps the same relative precision for very large and very small numbers.

  • 0.004567 to 3 significant figures is 0.00457.
  • 45,678 to 2 significant figures is 46,000.
  • 299,792,458 to 3 significant figures is 300,000,000, better written as 3.00 × 10⁸ so the trailing zeros are clearly significant.

Scientific results are usually reported to significant figures; the Scientific Notation Converter keeps them unambiguous.

Nearest multiple

Sometimes you need the nearest 5, 10, 0.5 or 0.05. Divide by the multiple, round to a whole number, and multiply back.

  • 12.37 to the nearest 0.05: 12.37 ÷ 0.05 = 247.4 → 247 → 12.35 (cash rounding in countries without 1-cent coins works like this).
  • 7.74 to the nearest 0.5: 15.48 → 15 → 7.5.
  • 47 to the nearest 5: 9.4 → 9 → 45.

Step 2: choose how to break ties

Most numbers are clearly closer to one neighbour, and every sensible rule agrees on them. The rules only differ for ties, values exactly halfway, such as 2.5 to a whole number or 0.125 to two places. And for directed rounding, which ignores "nearest" altogether.

Rule 2.5 3.5 −2.5 Notes
Half away from zero 3 4 −3 The school rule
Half up (towards +∞) 3 4 −2 Differs only for negatives
Half to even (banker's) 2 4 −2 Default in IEEE 754 and many languages
Half towards zero 2 3 −2 Rare
Floor (always down) 2 3 −3 Towards −∞
Ceiling (always up) 3 4 −2 Towards +∞
Truncate 2 3 −2 Just drops digits

Why banker's rounding exists

If you always round halves up, values that end in exactly 5 are pushed upwards every time. Over thousands of transactions, that adds a small upward bias to totals. Round half to even sends half the ties up and half down (2.5 → 2, 3.5 → 4), so the bias cancels on average. It is the default rounding mode in the IEEE 754 floating-point standard and in functions such as Python's round().

At two decimal places the effect is the same: 0.125 → 0.13 with half away from zero, but 0.12 with banker's rounding, because 2 is even.

When to use floor and ceiling

Directed rounding is not about accuracy but about safety or rules. How many boxes of 12 do you need for 50 items? 50 ÷ 12 = 4.17, and you need the ceiling, 5. How many full weeks are in 45 days? The floor, 6. Truncation is common when converting to whole numbers in software.

The 2.675 surprise

Ask many programming languages to round 2.675 to two places and they return 2.67, not 2.68. JavaScript's (2.675).toFixed(2) and Python's round(2.675, 2) both do this.

The cause is not the rounding rule. Computers store decimals in binary, and 2.675 cannot be represented exactly; the stored value is slightly less, about 2.67499999999999982. Rounded correctly, that really is 2.67.

A tool that works with exact decimal values, as our calculator does, treats 2.675 as exactly 2.675 and gives 2.68 under half away from zero, or 2.68 under banker's rounding too, since 8 is even. If you need exact decimal rounding in code, use a decimal type (for example Python's decimal module) instead of floating point.

The double-rounding trap

Rounding in two stages can give a different answer from rounding once.

2.449 → 2.45 (2 places) → 2.5 (1 place)
2.449 → 2.4 (1 place, directly)

The correct one-place answer is 2.4, because 2.449 is closer to 2.4 than to 2.5. The first rounding created an artificial tie. Always round from the original value, once, to the precision you need.

A related problem: if you round each line of an invoice and then add them, the total can differ by a cent or two from rounding the true total. Decide in advance which one is authoritative.

How to use the Rounding Calculator

  1. Open the Rounding Calculator.
  2. Type the Number to round. Decimals, fractions such as 2/3 and E-notation such as 1.2345e-5 are accepted, and rounding is exact.
  3. Choose where to round with the tabs: Decimal places, Significant figures or Nearest 10, 100, 0.5…. Enter the number of places or figures (negative decimal places round to tens, hundreds and so on), or pick a multiple from Nearest, including Custom… for values like 0.05.
  4. Choose the Rounding rule. A description with examples appears under the menu.
  5. Read the Rounded value, plus the Original (exact) value and the Rounding error. For significant figures you also get the scientific notation form.
  6. A comparison table shows the result under every rule at once, which makes it easy to see whether your number is a tie. Open the steps to see where the cut happens and whether the leftover is below, above or exactly half.

Rounding in spreadsheets

  • =ROUND(A2, 2) rounds half away from zero; =ROUND(A2, -2) rounds to hundreds.
  • =ROUNDUP and =ROUNDDOWN round away from and towards zero.
  • =MROUND(A2, 0.05) rounds to the nearest multiple.
  • =FLOOR and =CEILING round down or up to a multiple; their handling of negative numbers varies between versions, so test with a negative value first.

Spreadsheets do not have a simple built-in banker's rounding function, which is one reason to double-check financial reports that need it.

For related jobs, the Significant Figures Calculator counts significant figures in a value, and the Percent Error Calculator is where rounding to the right precision matters most in lab work.

Frequently asked questions

What is banker's rounding?

It is round half to even: exact ties go to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It avoids the upward bias of always rounding halves up.

Why does my program round 2.675 to 2.67?

Because 2.675 is stored in binary as a value slightly below 2.675, so correct rounding gives 2.67. Use exact decimal arithmetic if you need 2.68.

What is the difference between decimal places and significant figures?

Decimal places count digits after the point. Significant figures count digits from the first non-zero digit, so 0.00457 has 5 decimal places but 3 significant figures.

How do I round to the nearest 0.05?

Divide by 0.05, round to a whole number, then multiply by 0.05. For 12.37, that gives 247.4 → 247 → 12.35.

Should I round in several steps?

No. Round once, from the original number, to the final precision. Rounding 2.449 to 2.45 and then to one place gives 2.5 instead of the correct 2.4.

Try it now: Rounding Calculator

Loading tool…