MATHS & STATISTICS / ARITHMETIC

Rounding calculator

Round a number to any number of decimal places, or to tens, hundreds and thousands, using half-up, banker's (half-even), up, down or truncation.

Last reviewed:

← All tools

Your numbers

Negative values round to tens (−1), hundreds (−2) and so on.
◈ Your values stay in your browser. No account needed.
YOUR RESULT

Enter your numbers to see a result.

WORKED EXAMPLE

Rounding calculator: a worked example

With number 2.675, decimal places 2, rounding method Nearest, halves away from zero, the rounded value is 2.68.

Inputs
Number2.675
Decimal places2
Rounding methodNearest, halves away from zero
Results
Rounded value2.68
Change from the original0.005
THE METHOD

How it works

Choose how many decimal places to keep; use a negative number to round to tens (−1), hundreds (−2) or thousands (−3). The calculator rounds the decimal number you type, not its binary approximation, so 1.005 rounded to two places is 1.01, as you would do by hand. Banker's rounding sends exact halves to the even digit, which avoids an upward bias when many values are added up.

FormulaHalf up: round to the nearest; exact halves go away from zero. Half even: exact halves go to the even neighbour. Up: towards +∞. Down: towards −∞. Truncate: towards zero.
ASSUMPTIONS

Assumptions and limits

  • The number is rounded as written in decimal, using its shortest exact decimal form.
  • “Up” and “down” follow the number line, so rounding −2.5 up gives −2 and down gives −3.
  • Results keep trailing zeros, for example 1.50, to show the precision you chose.
  • Results are estimates based on the inputs and assumptions on this page, not professional advice.
  • Try this: use “Save scenario A”, change one input and compare the two results side by side.
QUESTIONS

Frequently asked questions

How is the result of the “Rounding calculator” calculated?

Half up: round to the nearest; exact halves go away from zero. Half even: exact halves go to the even neighbour. Up: towards +∞. Down: towards −∞. Truncate: towards zero. Choose how many decimal places to keep; use a negative number to round to tens (−1), hundreds (−2) or thousands (−3). The calculator rounds the decimal number you type, not its binary approximation, so 1.005 rounded to two places is 1.01, as you would do by hand. Banker's rounding sends exact halves to the even digit, which avoids an upward bias when many values are added up.

What does the worked example show?

With number 2.675, decimal places 2, rounding method Nearest, halves away from zero, the rounded value is 2.68. Change from the original: 0.005.

What assumptions and limits apply?

This is an estimate based on the inputs and assumptions shown on this page, not professional advice. Check anything with financial, health or safety consequences independently.

Is my data private?

Yes. Calculations run in your browser and your numbers are not sent to a server. A share link contains the inputs you choose to share, so check it before sending it to anyone.

Why does 2.675 round to 2.68 here but to 2.67 in some software?

Many programs store 2.675 in binary as 2.67499999…, which rounds down. This calculator rounds the decimal value you typed, so the half rounds up as taught in school.

What is banker's rounding?

Halves go to the nearest even digit: 2.5 becomes 2 and 3.5 becomes 4. Over many values, halves round up and down equally often, so totals are not pushed upwards. It is the default in IEEE 754 arithmetic and in some accounting and statistics work.

How do I round to the nearest thousand?

Set decimal places to −3. For example 1,234,567 becomes 1,235,000.

FOR WEBSITE OWNERS

Embed this calculator on your site

Free to use. Paste this where you want the calculator to appear. It resizes itself and links back to Calculator786.