UTILS.
Private by default
≈

Rounding Calculator

Round a number up, down, to decimal places or to the nearest multiple.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Round a number five different ways and see the result update live, all in your browser.

Enter any number, including a decimal or negative one, and pick a mode. Round gives the nearest value at the chosen decimal places, with exact ties going toward positive infinity, so 2.5 becomes 3 and -2.5 becomes -2. Round half up sends ties away from zero, so -2.5 becomes -3. Floor always goes toward negative infinity and Ceil toward positive infinity, which means floor of -2.1 is -3. Nearest multiple rounds to the closest multiple of a value you set, such as 47 to the nearest 5 giving 45, and it uses the same tie rule as Round.

The decimal-places box accepts 0 to 15; negative values are treated as 0 and larger ones as 15. To round to tens or hundreds, use the nearest-multiple mode with 10 or 100. A multiple of zero is rejected.

The tool shifts the decimal point through the number's exponent rather than multiplying, so well-known binary quirks such as 1.005 rounding to 1 instead of 1.01 do not occur. The result is also trimmed of floating-point dust beyond twelve decimals. Everything is local; no data leaves the page.

Frequently asked questions

How does round-half-up differ from Round?
Both agree except on exact ties. Round sends 2.5 to 3 but -2.5 to -2, while round-half-up sends a tie away from zero, so -2.5 becomes -3.
What is nearest-multiple rounding?
It rounds to the closest multiple of a value you choose. For example, 47 to the nearest multiple of 5 is 45, and 0.37 to the nearest 0.25 is 0.25.
Can I round to the nearest ten or hundred?
The decimal places field does not go below 0, so use nearest-multiple mode with a multiple of 10 or 100 instead.
Why does 1.005 round correctly to 1.01?
The tool shifts the decimal point by exponent instead of multiplying by 100, which avoids the binary rounding error that makes many calculators return 1.

More tools