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.