Rounding Calculator
Round any number to a number of decimal places, significant figures or the nearest 10, 100, 0.5 or any increment. Choose the rounding rule, including banker's rounding, ceiling, floor and truncation, and compare every method side by side.
Any number, e.g. 1234.5678, -2.5 or 6.02e23. Exact decimal math, no floating-point errors.
0 = whole number; −1 = tens, −2 = hundreds
How to use the Rounding Calculator
- Enter the number you want to round.
- Choose what to round to: decimal places, significant figures or the nearest increment.
- Set the precision, for example 2 decimal places or the nearest 100.
- Pick a rounding rule. The standard school rule is round half away from zero.
- Press Round to see the result, the working and a table comparing every method.
Rounding rules compared
| Rule | 2.5 | 3.5 | −2.5 | 2.4 | 2.6 | −2.6 |
|---|---|---|---|---|---|---|
| Half away from zero (standard) | 3 | 4 | −3 | 2 | 3 | −3 |
| Half up (toward +∞) | 3 | 4 | −2 | 2 | 3 | −3 |
| Half down (toward −∞) | 2 | 3 | −3 | 2 | 3 | −3 |
| Half to even (banker's) | 2 | 4 | −2 | 2 | 3 | −3 |
| Half toward zero | 2 | 3 | −2 | 2 | 3 | −3 |
| Ceiling (round up) | 3 | 4 | −2 | 3 | 3 | −2 |
| Floor (round down) | 2 | 3 | −3 | 2 | 2 | −3 |
| Truncate (toward zero) | 2 | 3 | −2 | 2 | 2 | −2 |
| Away from zero | 3 | 4 | −3 | 3 | 3 | −3 |
How rounding works
Every kind of rounding replaces a number with a multiple of some increment: 0.01 for two decimal places, 100 for the nearest hundred, 0.05 for the nearest five cents. The number lies between two neighboring multiples, and the rule picks one. The "half" rules choose the closer neighbor and only differ when the number is exactly in the middle. Ceiling, floor, truncate and away-from-zero ignore distance and always move in one direction.
Significant figures set the increment from the size of the number: for 0.004567 the first significant digit is in the thousandths place, so 2 significant figures means rounding to the nearest 0.0001, giving 0.0046.
| Number | Nearest whole | 1 decimal | 2 decimals | Nearest 10 | 3 sig. figs |
|---|---|---|---|---|---|
| 3.14159 | 3 | 3.1 | 3.14 | 0 | 3.14 |
| 2.675 | 3 | 2.7 | 2.68 | 0 | 2.68 |
| 48.951 | 49 | 49.0 | 48.95 | 50 | 49.0 |
| 1,234.5678 | 1,235 | 1,234.6 | 1,234.57 | 1,230 | 1,230 |
| −7.45 | −7 | −7.5 | −7.45 | −10 | −7.45 |
Values in this table use the standard rule, round half away from zero.
Frequently asked questions
How do you round to 2 decimal places?
Look at the third decimal digit. If it is 5 or more, add 1 to the second decimal digit; if it is 4 or less, leave it. Then drop the rest. 3.14159 becomes 3.14 and 2.675 becomes 2.68.
What is banker's rounding?
Round half to even: when a number is exactly halfway, it goes to the neighbor whose last digit is even, so 2.5 → 2, 3.5 → 4 and 0.125 → 0.12. It avoids the upward bias of always rounding halves up and is used in finance and by IEEE 754 floating point.
What is the difference between round half up and round half away from zero?
They only differ for negative halves. Half up always moves ties toward positive infinity (−2.5 → −2), while half away from zero moves them away from zero (−2.5 → −3). Most people mean half away from zero when they say "round half up".
How do you round to significant figures?
Start counting at the first non-zero digit, keep that many digits, and round the next one. 0.004567 to 2 significant figures is 0.0046 and 18,470 to 2 significant figures is 18,000.
How do you round to the nearest 10 or 100?
Find the two multiples the number lies between and pick the closer one. 1,847 to the nearest 100 lies between 1,800 and 1,900 and is closer to 1,800. A number exactly halfway, like 1,850, follows your tie rule.
What is the difference between rounding down and truncating?
Rounding down (floor) always goes toward negative infinity, while truncating just chops off digits, which goes toward zero. They agree for positive numbers but differ for negatives: floor(−2.3) = −3, truncate(−2.3) = −2.
Why do some calculators round 1.005 to 1.00?
In binary floating point 1.005 is stored as 1.00499999…, so naive code rounds it down. This calculator does exact decimal arithmetic on the digits you type, so 1.005 rounds to 1.01 with the standard rule.