Rounding Calculator

Round a number to a chosen number of decimal places, significant figures, or the nearest ten, hundred or thousand.

Round by

0 to 10.

Worked example

3.14159 rounded to 2 decimal places is 3.14.

How it works

This tool rounds a number to a chosen number of decimal places, to a chosen number of significant figures, or to the nearest ten, hundred, thousand and so on, using the conventional "round half away from zero" rule: an exact halfway value always rounds outward, away from zero (2.5 rounds to 3, and −2.5 rounds to −3, never towards zero). Some other calculators round a negative halfway value towards zero or towards positive infinity instead, which can give −2 for −2.5; this one does not.

The calculation corrects for a well-known quirk of computer arithmetic. A value like 1.005 can be stored internally as very slightly less than 1.005, which would otherwise cause it to round down instead of up, and this correction is applied consistently regardless of how large or small the number is.

It does not offer unlimited precision: decimal places are limited to 10, and significant figures to 15, beyond which ordinary computer number storage is no longer reliably exact. Rounding to the nearest ten, hundred or thousand accepts whole-number magnitudes up to 9,007,199,254,740,991 for the same reason.

What this result means

The result is your number rounded to the number of decimal places or significant figures you chose, or to the nearest ten, hundred, thousand or larger power of ten. An exact halfway value rounds away from zero.

Examples

  • 12,345 rounded to 3 significant figures: 12,300
  • 2.5 and −2.5 rounded to 0 decimal places: 3 and −3. A value exactly halfway always rounds away from zero, in both directions.
  • 1.005 rounded to 2 decimal places: 1.01. The tool corrects for the way a computer stores 1.005 slightly below its true value, so it rounds up as written arithmetic would.

Common mistakes

  • Significant figures mode does not pad the result with trailing zeros to show precision, so 100 to 5 significant figures is still shown as 100, not 100.00.

Analytics only runs if you choose to allow it below. Advertising and affiliate tracking are not currently active on Numerila. Your preferences are saved in this browser, but these settings do not activate either service.