How it works
Look at the digit just after the place you round to. If it is 5 or more, round up. If it is less than 5, round down. A number exactly halfway goes away from zero (2.5 becomes 3, and −2.5 becomes −3).
Formula
Rounded down = floor(number ÷ step) × step.
Rounded up = ceil(number ÷ step) × step.
Example
Example in plain words. Round 3.14159 to the nearest 0.01.
The third digit after the point is 1, which is less than 5, so round down: 3.14.
Rounded down is 3.14 and rounded up is 3.15.
Frequently asked questions
What about 2.675?
Rounded to 0.01 it gives 2.68, using the half-away-from-zero rule shown above.