Rounding Calculator
Round any number to any number of decimal places — half up, half even (bankers), half down, ceiling, floor and more, all compared in one table.
Rounded number
Note: Rounding is performed on the exact decimal digits you type, so halfway cases like 2.675 behave the way the mathematics says — not the way binary floating point happens to store them.
Rounding Is a Choice, Not a Fact
When a number lands exactly on the halfway point, different fields round it differently — and the difference matters at scale. Half up (the school rule) sends 2.5 to 3. Half even — bankers' rounding — sends 2.5 to 2 and 3.5 to 4, always landing on the even digit so that rounding errors cancel out over thousands of figures instead of drifting upward. Half down, away-from-zero "up", toward-zero "down", ceiling and floor complete the set. This calculator does the rounding on the decimal digits themselves, not on the binary approximation, so 2.675 at 2 places is treated as the exact halfway case it is — the case floating-point arithmetic famously gets wrong.
Worked Example
2.675 to two decimal places: half up gives 2.68, half down gives 2.67, and half even also gives 2.68 (the digit before the 5 is 7, odd, so it rounds up to even 8). Try 2.5 at zero places to see the modes truly split: half up 3, half even 2, half down 2, ceiling 3, floor 2. The comparison table under every result shows all seven modes at once for exactly this reason.
Where Each Mode Rules
Finance and statistics default to half even (it is the IEEE 754 and Python default) to keep ledgers unbiased. Invoicing and tax usually specify half up by law or custom. Ceiling is the safe mode for materials — always round boards, tiles and paint up — while floor governs what fits: how many whole items a budget buys. Choosing deliberately, instead of accepting a spreadsheet's silent default, is most of what "rounding correctly" means.
Frequently Asked Questions
What is bankers rounding?
Half even rounding: exact halves go to the nearest even last digit, so 2.5 becomes 2 and 3.5 becomes 4. Over many figures the errors cancel instead of drifting up, which is why finance and IEEE arithmetic use it.
Why does 2.675 round to 2.68 here but 2.67 in some apps?
Most apps store 2.675 as a binary number slightly below the halfway point and round that. This calculator rounds the exact decimal digits you typed, so the halfway case is treated as a true half.
When should I use ceiling instead?
When running short is worse than having spare: boards, tiles, paint and seats. Ceiling always rounds up to the next value at your chosen precision.
What is the difference between up and ceiling?
Ceiling rounds toward positive infinity, so -2.5 ceilings to -2. Up means away from zero, so -2.5 goes to -3. They agree on positives and differ on negatives.