This rounding calculator rounds any number to a chosen number of decimal places, to significant figures, or to the nearest multiple such as 10, 100, 1,000, 0.5 or 0.25. Choose the rounding rule, from standard round half up to banker’s rounding (half to even), ceiling, floor or truncation, and the calculator shows the rounded value, its scientific notation and a side-by-side comparison of every rule.
How rounding works
Every rounding problem has two parts: the step you are rounding to (0.01, 1, 100, 0.5 …) and the rule for picking between the two nearest steps. For decimal places, look at the first digit you are dropping:
1234.5678 → 2 decimal places kept: 1234.56 | dropped: 78 first dropped digit 7 ≥ 5 → round up → 1234.57
If the first dropped digit is 0–4, the kept digits stay as they are; if it is 5–9, the last kept digit goes up by one. The only real disagreement between rules is the exact tie, when the dropped part is exactly 5, 50, 500 …
Rounding rules compared
| Rule | 2.5 | 3.5 | −2.5 | 2.1 | −2.9 |
|---|---|---|---|---|---|
| Half away from zero (standard) | 3 | 4 | −3 | 2 | −3 |
| Half to even (banker’s) | 2 | 4 | −2 | 2 | −3 |
| Up (ceiling) | 3 | 4 | −2 | 3 | −2 |
| Down (floor) | 2 | 3 | −3 | 2 | −3 |
| Truncate (toward zero) | 2 | 3 | −2 | 2 | −2 |
Half away from zero is what most people learn in school and what Excel’s ROUND function does. Half to even sends ties to the even neighbor (2.5 → 2, 3.5 → 4), so over many values the ups and downs cancel; it is the default in IEEE 754 floating-point arithmetic, Python’s round() and many accounting and scientific contexts. Ceiling and floor ignore the half rule entirely and always move toward +∞ or −∞, and truncation simply chops off digits.
Rounding to significant figures
Significant figures count from the first nonzero digit, so they describe precision regardless of size. Leading zeros never count; zeros between nonzero digits always do.
- 0.000123456 to 3 significant figures = 0.000123 (1.23 × 10⁻⁴).
- 12,345 to 2 significant figures = 12,000 (1.2 × 10⁴). Scientific notation makes the precision clear; “12,000” alone could mean 2 or 5 significant figures.
- 9.99 to 2 significant figures rounds up to 10, written 1.0 × 10¹ to show both figures.
- Avogadro’s number, 6.02214076 × 10²³, to 3 significant figures is 6.02 × 10²³.
The scientific notation calculator converts and multiplies numbers in this form.
Rounding to the nearest 10, 100, 0.5 and more
To round to any step, divide by the step, round to a whole number, and multiply back. 1,234.5678 to the nearest 100: 12.345678 → 12 → 1,200. 7.3 to the nearest 0.5: 14.6 → 15 → 7.5. 7.3 to the nearest 0.25 (quarter): 29.2 → 29 → 7.25. Ties follow the chosen rule: 12.5 to the nearest 5 is 15 with half away from zero, but 10 with half to even, because 12.5 ÷ 5 = 2.5 goes to the even 2.
Worked examples
- Money: $1,234.5678 rounds to $1,234.57 at 2 decimals, a change of +$0.0022.
- The 1.005 trap: 1.005 to 2 decimals is 1.01 by the standard rule. Many programs return 1.00 because 1.005 cannot be stored exactly in binary floating point; this calculator rounds the decimal digits you typed, so the result is always exact.
- Banker’s rounding: 2.675 to 2 decimals with half to even is 2.68, because the kept digit 7 is odd and moves up to the even 8.
- Padding: 2.5 to 2 decimal places is shown as 2.50, keeping the trailing zero that signals the precision.
Rounding in Excel and code
Spreadsheets give each rule its own function. In Excel and Google Sheets, ROUND(A1, 2) rounds half away from zero, ROUNDUP and ROUNDDOWN move away from or toward zero, CEILING and FLOOR round to a multiple, MROUND(A1, 0.25) rounds to the nearest quarter, and TRUNC cuts digits. Negative digit counts round to the left of the decimal point: ROUND(1234.5678, −2) = 1,200. In code, JavaScript’s Math.round rounds ties toward +∞ (−2.5 → −2), while Python’s round uses half to even.
Common mistakes
- Double rounding. Rounding 1.445 to 2 decimals (1.45) and then to 1 decimal gives 1.5, but rounding 1.445 straight to 1 decimal gives 1.4. Always round once, from the original value.
- Rounding too early. Keep full precision through a multi-step calculation and round only the final answer.
- Dropping meaningful zeros. 3.10 m measured to the centimeter is more precise than 3.1 m; keep the zero.
Related calculators
- Scientific Notation Calculator
- Decimal to Fraction Calculator
- Percent Error Calculator
- Percentage Calculator
- Scientific Calculator
Frequently Asked Questions
How do you round to 2 decimal places?
Look at the third digit after the decimal point. If it is 5 or more, add one to the second digit; otherwise leave it. 1,234.5678 becomes 1,234.57.
What is banker’s rounding?
Banker’s rounding (round half to even) sends exact ties to the nearest even digit: 2.5 → 2, 3.5 → 4, 0.125 → 0.12. It avoids the upward bias of always rounding 5 up.
How do you round to significant figures?
Start counting at the first nonzero digit, keep the number of digits you need, and round the last one using the next digit. 0.004567 to 2 significant figures is 0.0046.
Does 0.5 round up or down?
Under the standard school rule it rounds up to 1 (away from zero). Under banker’s rounding it rounds to the even neighbor, which is 0.
How do I round a negative number?
The standard rule rounds the size of the number, so −2.5 becomes −3 and −2.4 becomes −2. Ceiling moves toward positive infinity (−2.5 → −2), floor toward negative infinity (−2.5 → −3).