Round to decimal places
Good for prices, grades and measurements. It rounds the digits you typed, not a binary copy, so 2.675 gives 2.68 as it does by hand.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter number and decimal places.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
Look at the digit after the last place you keep: if it is 5 or more, add one to that place, otherwise leave it, then drop the rest.
Example
Inputs: Number = 3.14159, Decimal places = 2. Result: Rounded: 3.14.
3.14159
3.14
Limits and caveats
- Ties round away from zero, like Excel ROUND. For banker's rounding use the round-half-to-even tool.
- Up to 20 decimal places.
Questions about this tool
How do I round 3.14159 to 2 decimal places?
The digit after the second place is 1, which is below 5, so the result is 3.14.
Why do some programs give 2.67 for 2.675?
They store 2.675 in binary as a value slightly below it. This tool rounds the digits you typed, so it gives 2.68.
How are negative numbers rounded?
The same way on the absolute value, then the sign is put back, so -1.005 becomes -1.01.
