Rounding shortens a number while keeping it close to the original value. It is how prices, measurements and statistics are made readable. But there is more than one way to round, and different fields use different rules. Our rounding calculator rounds to any number of decimal places with six rounding modes. This guide explains each mode, when to use it and how to avoid common rounding traps.
How to use the calculator
- Number: the value to round.
- Decimal places: how many digits to keep after the decimal point. Use 0 to round to a whole number.
- Mode: the rounding rule.
With the default, 2.345 to 2 decimal places using half up, the result is 2.35. With half even (banker's rounding) it becomes 2.34.
The calculator uses exact decimal arithmetic, so it avoids the floating-point glitches that make some software round 2.345 down by mistake.
The six rounding modes
| Mode | Rule | 2.345 → 2 dp | −2.345 → 2 dp |
|---|---|---|---|
| Half up | Halves round away from zero | 2.35 | −2.35 |
| Half even | Halves round to the even digit | 2.34 | −2.34 |
| Away from 0 | Always round outward | 2.35 | −2.35 |
| Toward 0 | Always cut off (truncate) | 2.34 | −2.34 |
| Ceiling | Always round up toward +∞ | 2.35 | −2.34 |
| Floor | Always round down toward −∞ | 2.34 | −2.35 |
Only numbers exactly halfway (ending in 5 at the next digit) are treated differently by the "half" modes. For 2.341, half up and half even both give 2.34.
Half up: the school method
Look at the digit after the last one you keep. If it is 5 or more, round up; if it is 4 or less, leave it.
- 3.14159 to 2 dp → 3.14 (next digit 1)
- 7.865 to 2 dp → 7.87 (next digit 5)
- 1,234.5678 to 0 dp → 1,235
Half even: banker's rounding
When the number is exactly halfway, round to whichever neighbour has an even last digit.
- 2.345 → 2.34 (4 is even)
- 2.355 → 2.36 (6 is even)
- 0.5 → 0, 1.5 → 2, 2.5 → 2
Why bother? Always rounding halves up nudges totals upward over thousands of values. Rounding halves to even balances out, so it is used in accounting, statistics and the IEEE standard for computer arithmetic.
Ceiling and floor
- Ceiling always moves toward positive infinity. Use it when you must not fall short: if a job needs 7.2 boxes of tiles, you buy 8. The tile calculator does this kind of rounding for you.
- Floor always moves toward negative infinity. Use it to count complete units: with $50 and items at $12, you can buy floor(4.17) = 4.
Toward zero (truncation)
Simply drops the extra digits. 9.99 truncated to 0 dp is 9. Many programming languages convert decimals to integers this way, and some tax and payroll rules require it.
Significant figures versus decimal places
Decimal places count digits after the point; significant figures count from the first non-zero digit. 0.004567 to 2 decimal places is 0.00, but to 2 significant figures it is 0.0046. For very large or small numbers, use the scientific notation calculator and round the coefficient.
Rounding to tens, hundreds and thousands
To round 4,872 to the nearest hundred, look at the tens digit (7): it rounds up to 4,900. To the nearest thousand, look at the hundreds digit (8): 5,000.
Avoiding rounding errors
- Round at the end. Rounding intermediate steps compounds errors. If you round a 1.06 growth factor to 1.1 before raising it to the 10th power, the answer is off by over 40%.
- Check totals. Percentages rounded individually may add up to 99% or 101%. That is expected, not a mistake.
- Money: most currencies round to 2 decimal places, but tax and interest rules vary. The sales tax calculator shows a practical example.
- Measurement: do not report more decimal places than your instrument can measure. The percent error calculator helps judge accuracy.
Frequently asked questions
What is the difference between half up and half even?
They only differ when the number is exactly halfway. Half up always rounds 5 away from zero; half even rounds to the nearest even digit, which avoids an upward bias.
Why does 2.5 round to 2 in some software?
That software is using banker's rounding (half even). Choose half up in the calculator if you want 3.
How do I round to the nearest whole number?
Set decimal places to 0 and choose half up.
Does the calculator work with negative numbers?
Yes. Pay attention to the mode: ceiling and floor treat negative numbers differently from half up and toward zero.
Try it yourself
Run your own numbers with our free tool: Rounding calculator. No sign-up, and it works on any device.