Rounding Calculator

In short: rounding is a rule for choosing the nearest allowed value — and the interesting fights are all about exact halves. This calculator rounds the digits as you typed them (so 2.675 → 2.68 half-up, not the 2.67 that binary arithmetic produces) and offers all six standard modes, to decimal places or significant figures.

Six modes, because "round it" is underspecified

For most digits there is no argument: 2.674 goes down to 2.67 and 2.676 goes up to 2.68 under every sane rule. The modes differ only at the exact halfway point and at the extremes. Half up — the school rule — sends 2.5 to 3 and is what invoices and schoolbooks assume. Half down sends it to 2. Half to even (banker's rounding) sends 2.5 to 2 but 3.5 to 4, choosing whichever neighbour is even; across thousands of rounded figures this neutrality stops the slow upward drift that half-up builds into totals, which is why financial systems and the IEEE 754 arithmetic standard prefer it. Ceiling and floor ignore nearness entirely and always move in one direction — the modes of safety margins and capacities — and truncate simply cuts digits off, the floor for positive numbers and ceiling for negative ones. Choosing among them is not pedantry: a payroll system rounding a million salary calculations half-up instead of half-even donates a small, real, systematic sum in one direction.

Then there is the machine problem, which this page is deliberately built to avoid. Computers store decimals as binary fractions, and most decimal fractions have no exact binary form: the value stored for 2.675 is 2.67499999999999982…, a whisper below the half, so software that rounds the stored value answers 2.67 — and its user, who typed an exact half, concludes the software cannot round. Accountants meet this in spreadsheets; programmers meet it in every language. The fix used here is to round the decimal representation itself: the digits you typed are manipulated as digits, so halves are exactly halves. (The same honesty applies in reverse: if you paste a number that came out of a binary computation, its trailing digits may already carry that error, and no rounding mode can remove it.)

Finally, the two targets. Decimal places fix the digits after the point — money's natural unit. Significant figures fix the count of meaningful digits wherever they sit — science's unit, because it states precision relative to the size of the thing measured: 12,300 to three significant figures and 0.00460 to three significant figures carry the same relative precision, though one has no decimal places at all and the other has five. Negative decimal places reach the other direction: −2 places is the nearest hundred, the rounding of populations and budgets.

One last discipline, whatever mode you choose: round once, at the end. Rounding at every intermediate step compounds the nudges — a chain of calculations rounded half-up at each stage can drift a full unit from the answer the unrounded chain gives. Keep full precision through the working and let the final display take the rounding hit alone; auditors and engineers share this rule for a reason.

Worked examples

2.675 to 2 decimal places: half up → 2.68; half down → 2.67; half to even → 2.68 (8 is even); ceiling → 2.68; floor → 2.67. One number, three defensible answers — the mode is the message.

2.5 to a whole number: half up → 3, half to even → 2, half down → 2. And 3.5 half to even → 4. The pair shows the even rule balancing itself.

1,250 to the nearest hundred (−2 places): half up → 1,300; half to even → 1,200, because the hundreds digit 2 is already even.

0.004567 to 2 significant figures: 0.0046 — the leading zeros are placeholders, not precision.

Modes compared on the same halves

Mode2.5 →3.5 →−2.5 →Used by
Half up34−3School, invoices
Half down23−2Some pricing rules
Half to even24−2Banking, IEEE 754, statistics
Ceiling34−2Materials, capacity
Floor23−3Safe loads, budgets
Truncate23−2Display cut-offs

Frequently asked questions

What is banker's rounding?

Rounding halves to the nearest even number: 2.5 becomes 2, but 3.5 becomes 4. Over many roundings, ordinary half-up pushes totals systematically upwards (every half adds a little), while half-to-even cancels out — halves go up half the time and down half the time. Banks, statistics packages and the IEEE 754 standard use it for exactly that neutrality.

Why does 2.675 round to 2.67 on some calculators?

Because computers store decimals in binary, and 2.675 in binary is actually 2.67499999999999982… — a hair below the halfway point, so it rounds down. The number you typed was an exact half; the number the machine stored was not. This calculator rounds the decimal digits as typed, so 2.675 rounds to 2.68 under half-up, the way school and accounting expect.

What is the difference between rounding to decimal places and significant figures?

Decimal places count digits after the point: 3.14159 to 2 places is 3.14. Significant figures count meaningful digits from the first non-zero digit: 3.14159 to 3 significant figures is 3.14, but 12,345 to 3 significant figures is 12,300, and 0.004567 to 2 significant figures is 0.0046. Science reports in significant figures because they express precision relative to size.

When should I use ceiling or floor instead of nearest?

When the direction of the error matters more than its size. Materials and capacity round up (ceiling): 4.1 tins of paint means buying 5. Budgets and safe loads round down (floor): a lift rated for 8.9 people carries 8. Rounding to nearest is for measurement; ceiling and floor are for decisions with a safe side.

How do I round to the nearest 10, 100 or 1000?

The same halfway rule applied at that digit: look at the digit one place below. 1,250 to the nearest hundred is 1,300 under half-up (the dropped part is exactly 50, a half) but 1,200 under banker's rounding, because 2 is even. This calculator offers these as "negative decimal places" — rounding to −2 places means the nearest hundred.

Note: for negative numbers, "half up" here means half away from zero (−2.5 → −3), the common school convention; some systems define it as towards positive infinity. The mode table above shows each mode's behaviour on negatives so there is no ambiguity about what this page does.

Related tools

Modes and examples last verified: 23 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.