Rounding Calculator
Rounding replaces a number with a shorter, nearby one. Rounding 2.675 to two decimal places gives 2.68 with the usual “half away from zero” rule, while rounding down or truncating gives 2.67. This calculator shows five rounding methods side by side.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Advanced options
Step-by-Step Solution
What Is Rounding?
Rounding replaces a number with a simpler one that is close to it. You do it whenever a result has more digits than are useful: a bill is rounded to cents, a distance to the nearest kilometre, a measurement to the precision of the instrument that took it.
The usual convention is to look at the first digit you are discarding. If it is 5 or more, round up. If it is 4 or less, round down. But that simple rule hides several choices. What happens exactly at the halfway point, 2.5? What about negative numbers? Different fields use different rules, and this calculator shows them together.
Rounding Methods Compared
| Method | Rule | 2.5 | 3.5 | −2.5 |
|---|---|---|---|---|
| Nearest, half away from zero | Halves round to the larger magnitude | 3 | 4 | −3 |
| Banker’s (half to even) | Halves round to the nearest even digit | 2 | 4 | −2 |
| Round down (floor) | Always toward −∞ | 2 | 3 | −3 |
| Round up (ceiling) | Always toward +∞ | 3 | 4 | −2 |
| Truncate | Drop digits, toward zero | 2 | 3 | −2 |
Banker’s rounding, also called round-half-to-even, avoids the slight upward bias that always rounding halves up produces. It is the default in many financial systems and in the IEEE 754 standard for floating-point arithmetic.
Rounding Rules: Decimal Places and Significant Figures
There are two common ways to decide how many digits to keep.
dis the number of decimal places. A negative d rounds to the left of the decimal point: −1 means the nearest ten, −2 the nearest hundred.sis the number of significant figures, counted from the first non-zero digit.- Leading zeros are never significant: 0.004567 has four significant figures, 4, 5, 6 and 7.
Significant figures are preferred in science because they describe the precision of a measurement regardless of its size. Decimal places are used in money and everyday work.
How Is It Calculated? Worked Examples
Round 2.675 to Two Decimal Places
- Look at the third decimal place: 5, which is a halfway case.
- Rounding half away from zero gives 2.68.
- Banker’s rounding looks at the preceding digit, 7, which is odd, so it rounds up to the even 8: 2.68.
- Rounding down or truncating gives 2.67.
Many programming languages print 2.67 for this because 2.675 cannot be stored exactly in binary and is held as a value slightly below it. This calculator works with the decimal digits you typed, so you get the answer you expect.
More Examples
| Number | Request | Result |
|---|---|---|
| 0.004567 | 2 significant figures | 0.0046 |
| 123,456 | 3 significant figures | 123,000 |
| 123,456 | Nearest thousand (d = −3) | 123,000 |
| 1,234 | Nearest hundred (d = −2) | 1,200 |
| 0.5 | 0 decimal places, banker’s | 0 |
| 0.5 | 0 decimal places, half away from zero | 1 |
Rounding Twice Gives the Wrong Answer
Round 2.4491 to one decimal place. Directly, the answer is 2.4. But if you first round to 2.45 and then to 2.5, you end up at the wrong value. Always round once, from the original number.
How to Use This Rounding Calculator
- Enter the number you want to round.
- Enter the number of decimal places. Use a negative number to round to tens, hundreds or thousands.
- Enter the number of significant figures if you need that form.
- Compare the results from the five methods and pick the one your situation calls for.
Where Rounding Is Used
- Money: prices and invoices rounded to the cent, and tax calculations.
- Science and engineering: reporting measurements to the right number of significant figures.
- Statistics: presenting means and percentages to sensible precision. See the percentage calculator.
- Computing: floating-point arithmetic and display formatting.
- Everyday estimation: rounding to the nearest ten or hundred to calculate quickly in your head.
What Are the Most Common Mistakes With the Rounding Calculator?
- Rounding too early. Round only the final answer. Rounding at every step accumulates error.
- Double rounding. Rounding a rounded number can produce a different result from rounding once.
- Misreading significant figures. Trailing zeros in a whole number such as 5,000 may or may not be significant. Scientific notation makes it explicit.
- Forgetting negative numbers. Methods differ: −2.5 rounds to −3 (away from zero) or −2 (banker’s).
- Assuming one rule. Spreadsheets, programming languages and textbooks do not always agree on halves.
- False precision. Writing 3.1416 for a measurement known to only two digits suggests accuracy that does not exist.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
How do you round a number to two decimal places?
Look at the third decimal digit. If it is 5 or more, increase the second decimal by 1. Otherwise leave it. 2.675 rounds to 2.68 and 2.674 rounds to 2.67.
What is banker’s rounding?
Round half to even: a number exactly halfway between two values rounds to the nearest even digit. 2.5 becomes 2 and 3.5 becomes 4. It reduces systematic bias in large sets of numbers.
What are significant figures?
The digits that carry meaning about a value’s precision, starting from the first non-zero digit. 0.004567 has four significant figures.
What is the difference between rounding down and truncating?
For positive numbers they give the same result. For negatives, rounding down (floor) moves toward −∞ (−2.5 becomes −3), while truncating drops digits toward zero (−2.5 becomes −2).
How do I round to the nearest ten, hundred or thousand?
Use a negative number of decimal places: −1 for tens, −2 for hundreds, −3 for thousands. 1,234 rounds to 1,200 at −2.
Why does my programming language round 2.675 to 2.67?
Because 2.675 cannot be represented exactly in binary floating point, and the stored value is slightly below 2.675.