Rounding calculator — decimal places, sig figs or nearest multiple

Enter a number, choose decimal places, significant figures or a multiple, and pick a rounding rule; the tool rounds with exact decimal arithmetic and shows what all seven rules would give.

Live demo · real result from this tool
Negative values round to tens (−1), hundreds (−2)…
Rounded2.68
Original
2.675
Rounding error
0.005

Every rounding rule

RuleResult
Half up (away from zero)2.68
Half to even (banker's)2.68
Half down (towards zero)2.67
Up (away from zero)2.68
Down (truncate towards zero)2.67
Ceiling (towards +∞)2.68
Floor (towards −∞)2.67

This uses exact decimal arithmetic. Binary floating point (as in JavaScript toFixed) gives 2.67, because 2.675 cannot be stored exactly in binary.

Processed on your device — nothing is uploaded.

How to use the rounding calculator

  1. Type the value in Number. Scientific notation such as 1.2e-5 is accepted.
  2. In Round to, choose Decimal places, Significant figures or Nearest multiple (0.05, 5, 100…).
  3. Fill in the box that appears: the number of places, the number of significant figures, or the multiple.
  4. Pick a Rounding rule. Half up is the usual school rule.
  5. Read Rounded and the Rounding error, then compare all rules in the Every rounding rule table.

What it does and when to use it

Rounding shortens a number while keeping it close to the original. You round money to cents, measurements to the precision of your instrument, and estimates to the nearest hundred. The tricky part is the rule for exact halves and for negative numbers, where textbooks, spreadsheets and programming languages do not all agree.

This page lets you see every rule side by side, which is handy when checking homework or matching a system’s output. For counting significant figures in a measured value, use the significant figures calculator; for turning a long decimal into a fraction, try the decimal to fraction converter.

How it works

The number is stored as an exact fraction. To round to p decimal places, the tool multiplies by 10^p, rounds to a whole number with the chosen rule, and divides by 10^p again. Negative p uses the same idea with 10, 100 and so on. Significant figures are converted to decimal places from the position of the first non-zero digit. For a multiple m, the tool rounds x ÷ m to a whole number and multiplies back by m.

Rule 2.5 −2.5
Half up (away from zero) 3 −3
Half to even (banker’s) 2 −2
Half down (towards zero) 2 −2
Up (away from zero) 3 −3
Down (truncate towards zero) 2 −2
Ceiling (towards +∞) 3 −2
Floor (towards −∞) 2 −3

These rows are the tool’s own results for 2.5 and −2.5 rounded to 0 places.

Step by step: 7.33 to the nearest 0.05:

  1. Divide by the multiple: 7.33 ÷ 0.05 = 146.6.
  2. Round to a whole number with half up: 147.
  3. Multiply back: 147 × 0.05 = 7.35.
  4. Rounding error: 7.35 − 7.33 = 0.02.

Worked examples

Two decimal places. 2.675 with half up gives Rounded: 2.68, plus a note that floating-point toFixed would give 2.67.

Banker’s rounding. 2.5 to 0 places with half to even gives 2, with Rounding error: -0.5.

Nearest 5 cents. 7.33 to the multiple 0.05 gives Rounded: 7.35.

Nearest hundred. 1234.5 with −2 decimal places gives Rounded: 1200. With the Up or Ceiling rule the table shows 1300.

Limits and tips

  • Round only once, at the end. Rounding in each step of a calculation lets errors build up.
  • Decimal places can go from −15 to 50.
  • When estimating percentages, round the final figure from the percentage calculator rather than the inputs.
  • All rounding happens in your browser.

Frequently asked questions

Why does JavaScript's toFixed round 2.675 to 2.67?
Computers store 2.675 in binary as a value slightly below 2.675, so it rounds down. This tool works with the exact decimal you typed and gives 2.68. When the two differ, it shows a note with the floating-point answer.
What is banker's rounding?
Also called round half to even. When a number is exactly halfway, it goes to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It avoids pushing totals upward and is used in some finance and statistics work.
How do I round to the nearest ten, hundred or thousand?
Use negative decimal places. −1 rounds to tens, −2 to hundreds, −3 to thousands. Or choose Nearest multiple and type 10, 100 or 1000.
What is the difference between floor and down?
For positive numbers they agree. For negatives, Floor moves towards minus infinity (−2.5 becomes −3), while Down cuts towards zero (−2.5 becomes −2). Ceiling and Up differ the same way.
Can I round prices to the nearest 5 cents?
Yes. Choose Nearest multiple and type 0.05. 7.33 becomes 7.35 and 7.32 becomes 7.30 shown as 7.3.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close