Rounding Calculator

Round any number to a chosen number of decimal places, or to the nearest 10, 100 or 1000. Choose half up, half to even (banker’s rounding), round up, round down or truncate.

  • 100% free
  • No signup
  • Runs in your browser

Round to decimal places

How to use

  1. Enter the number you want to round. You can use a dot or a comma as the decimal separator.
  2. Enter the number of decimal places: 2 for hundredths, 0 for whole numbers, -1 for the nearest 10, -2 for the nearest 100.
  3. Choose a rounding mode. Half up is the usual school rounding.
  4. Click Calculate or press Enter.

Rounding modes

Rounding mode Rounding 2.5 and −2.5
Half up (away from zero) 3 / −3
Half to even (banker’s rounding) 2 / −2
Up (ceiling) 3 / −2
Down (floor) 2 / −3
Toward zero (truncate) 2 / −2

Half to even rounds a number that is exactly halfway to the nearest even digit, so rounding many values does not drift upward. It is the default in many programming languages and is used in finance and statistics.

Decimal places and significant figures

Decimal places count the digits after the decimal separator: 3.14159 rounded to 2 decimal places is 3.14. Negative places round to the left of the separator: 1234.5 rounded to −2 places is 1200.

Significant figures count from the first non-zero digit instead: 0.004567 to 2 significant figures is 0.0046. To round to significant figures here, choose the number of decimal places that keeps the digits you need.

Examples

Example Result
3.14159 to 2 decimal places 3.14
2.675 to 2 decimal places 2.68 (some programs show 2.67 because of binary floating point)
1234.5678 to the nearest hundred (−2) 1200
0.125 to 2 places, half to even 0.12
Tips: Use negative decimal places to round to tens, hundreds or thousands. Scientific notation such as 1.5e3 is accepted in the number field.

FAQ

You choose. The default, half up, rounds 1.5 to 2 and −1.5 to −2, like school rounding. Half to even, up, down and toward zero are also available.

It is how many digits appear after the decimal separator. For example, rounding 3.14159 to 2 decimal places gives 3.14.

Use negative decimal places: −1 rounds to the nearest 10, −2 to the nearest 100 and −3 to the nearest 1000. For example, 1234 rounded to −2 places is 1200.

Another name for half to even: numbers exactly halfway are rounded to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It avoids an upward bias when many rounded values are added up.

Most programs store numbers in binary, where 1.005 is really 1.00499999…, so they round it down. This calculator shifts the decimal point exactly before rounding, so 1.005 correctly becomes 1.01.

For positive numbers there is none. For negative numbers, rounding down moves toward minus infinity (−2.7 → −3), while truncating simply cuts off the digits (−2.7 → −2).

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools