Skip to content

Rounding Calculator

Round any number to decimal places, significant figures or the nearest 10, 100 or 0.5, using half-up, banker's (half-even), up, down and more.

Calculator Details

Rounded number:2.68See results ↓

Type the number as written; it is rounded on its exact decimal digits (1.2e3 style is accepted)

Decimal places, significant figures, or the nearest multiple (10, 100, 0.5, 0.05…)

2 for hundredths (cents), 0 for a whole number; −1 rounds to tens, −2 to hundreds

Half up is school rounding; half even (banker’s) sends ties to the even digit; up and down always go one way

Your Results

Rounded number: 2.68

Rounded number

2.68

2.675 to 2 decimal places, half up (school rounding)

Rounding difference

+0.005

Rounded − original

Candidates

2.67 or 2.68

Exactly halfway: the tie rule decides

Every rounding rule

2.672.68halfway2.675
Your number (triangle) between the two nearest candidates; the filled dot is the one this rule picks.
2.675 rounded to 2 decimal places with each rule
RuleResult
Half up (school rounding)2.68
Half even (banker’s rounding)2.68
Half down2.67
Half toward +∞2.68
Half toward −∞2.67
Up (away from zero)2.68
Down (toward zero, truncate)2.67
Ceiling (toward +∞)2.68
Floor (toward −∞)2.67

2.675 rounds to 2.68 (half up). It sits exactly halfway between 2.67 and 2.68, so the half up rule decides.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

How This Calculator Works

How the number is rounded

  1. Precision: 2 decimal places (steps of 0.01).
  2. The two candidates either side of 2.675 are 2.67 and 2.68, with the halfway point at 2.675.
  3. 2.675 is exactly halfway, so the tie rule decides: half up (school rounding) gives 2.68.

The rounding is done on the decimal digits you typed, with exact arithmetic. Spreadsheets and programming languages store 2.675 in binary as 2.67499999…, which is why some of them round it to 2.67; this calculator gives 2.68 with half-up rounding, as you would on paper.

Banker’s rounding (half even) sends exact ties to the even neighbour, so over many roundings the ups and downs cancel out instead of drifting upwards. It is the default in IEEE 754 floating point and the rule NIST SP 811 recommends for measurement results.

Frequently Asked Questions

How do you round a number?

Find the digit in the place you are rounding to and look at the digit after it. If that digit is 5 or more, round up; otherwise keep the digit and drop the rest. 3.746 to one decimal place is 3.7, because the next digit, 4, is less than 5.

What is banker’s rounding?

Also called round half to even: a number exactly halfway goes to the neighbour with an even last digit. 2.5 becomes 2 and 3.5 becomes 4. Because ties go up and down equally often, totals of many rounded numbers don’t drift upwards. It is the default in IEEE 754 arithmetic and recommended by NIST SP 811.

Why does 2.675 round to 2.67 in some programs?

Binary floating point can’t store 2.675 exactly; the nearest value is 2.674999999999999822…, which is just below the halfway point. This calculator rounds the decimal digits you typed, so 2.675 to two places is 2.68 with half-up rounding.

How do I round to the nearest 10, 100 or 1000?

Choose “Nearest multiple” and enter 10, 100 or 1000, or use negative decimal places (−1 for tens, −2 for hundreds) as Excel’s ROUND does. 1,234 to the nearest 100 is 1200, and 1,250 is 1300 with half-up rounding but 1200 with banker’s rounding.

How do negative numbers round?

It depends on the rule. Half up (away from zero) rounds −2.5 to -3, the mirror image of 2.5 → 3. Ceiling always goes toward +∞, giving -2, and floor toward −∞, giving -3. JavaScript’s Math.round sends halves toward +∞, so it gives -2.

What is the difference between rounding down and truncating?

For positive numbers, nothing: both drop the extra digits. For negative numbers “down” can mean two things. Truncating (toward zero) turns −3.7 into -3, while flooring (toward −∞) gives -4. Excel’s ROUNDDOWN and TRUNC truncate; FLOOR.MATH floors.

How does rounding to significant figures differ from decimal places?

Decimal places count from the decimal point; significant figures count from the first non-zero digit. 0.0045678 to 3 decimal places is 0.005, but to 3 significant figures it is 0.00457. Significant figures keep the same relative precision for very small and very large numbers.

How do I round prices to the nearest 5 cents?

Round to the nearest multiple of 0.05. In Canada, where the penny was withdrawn in 2013, cash totals are rounded this way: $10.02 becomes $10.00 and $10.03 becomes $10.05. Card and cheque payments are still charged to the cent.

Rounds the decimal digits you type with exact decimal arithmetic (no binary floating point), to −10 to 30 decimal places, 1 to 40 significant figures or any positive multiple, with nine rules: half up, half even (banker’s), half down, half toward +∞ or −∞, up, down (truncate), ceiling and floor. Numbers can be written with a power of ten up to ±300. Not included: stochastic rounding, Canadian cash rounding of a purchase total as a separate mode (use the nearest 0.05), and rounding inside sums (round once, at the end).

Rounding Calculator: Decimal Places, Nearest 10 and Banker's Rounding

By FindMySum · Last reviewed

A rounding calculator shortens a number to a chosen precision: a number of decimal places, a number of significant figures, or the nearest multiple of something like 10, 100 or 0.05. The answer also depends on the rounding rule, which matters most when a number sits exactly halfway. This article explains the three kinds of precision, the nine rules the calculator offers, and why the calculator's default example, 2.675, catches out so much software.

Three ways to choose the precision

Decimal places count digits after the decimal point. Two places means hundredths (cents), zero means a whole number. Negative places work the other way, as in Excel's ROUND: −1 rounds to tens, −2 to hundreds, so ROUND(626.3, −3) is 1,000.

Significant figures count from the first non-zero digit, whatever its position. 0.0045678 to three significant figures is 0.00457, and 123,456 is 123,000. Scientists use them so a result shows the precision of the measurement behind it.

Nearest multiple rounds to any step: the nearest 10 or 100 for estimates, 0.5 for half-point grading, 0.25 for quarter hours, 0.05 for cash in Canada. It is Excel's MROUND: MROUND(1.3, 0.2) = 1.4.

The rounding rules

When the number lies between two candidates, the rule decides which one to pick. Five rules look for the nearer candidate and only differ on exact ties:

Rule2.5−2.5Used by
Half up (away from zero)3−3School rounding, Excel ROUND
Half even (banker's)2−2IEEE 754 default, NIST SP 811
Half down (toward zero)2−2Rare
Half toward +∞3−2JavaScript Math.round
Half toward −∞2−3Rare

Four rules always go the same way, however close the number is to the other candidate:

Rule2.1−2.1Used by
Up (away from zero)3−3Excel ROUNDUP
Down (toward zero, truncate)2−2Excel ROUNDDOWN, TRUNC
Ceiling (toward +∞)3−2CEILING.MATH
Floor (toward −∞)2−3FLOOR.MATH

The calculator shows your number rounded with all nine rules side by side, and marks the one you picked.

Why banker's rounding exists

Half-up rounding always sends ties upwards. If you round many numbers that end in exactly 5 (prices, measurements to a fixed resolution), the rounded total creeps above the true total. Round half to even sends half the ties up and half down, so the error averages out. NIST Special Publication 811, Appendix B.7, recommends it for reporting measurements, and it is the default rounding mode in the IEEE 754 standard used by virtually every computer. With banker's rounding 0.125 to two places is 0.12, while 0.135 is 0.14.

The 2.675 problem

Ask many programming languages to round 2.675 to two decimal places and you get 2.67, not the 2.68 you would write by hand. The reason is that computers store numbers in binary, and 2.675 has no exact binary form. The closest value a 64-bit number can hold is 2.67499999999999982…, just below the halfway point, so it rounds down.

This calculator never converts your number to binary. It reads the digits you type as an exact decimal and applies the rounding rule to those digits, so 2.675 to two places with half up is 2.68 and with banker's rounding is also 2.68 (the 7 is odd, so the tie goes to 8). The how-it-works section shows the two candidates, the halfway point and which rule decided.

Rounding to significant figures

Rounding to significant figures can change the number of digits before the decimal point. 9.996 to three significant figures carries all the way up to 10.0: the result is written with three significant digits, including the trailing zero, to show its precision. Very large and very small results switch to a × 10ⁿ form.

Good habits

  • Round once, at the end, from the original number.
  • Use the precision the context demands: cents for money, the instrument's resolution for measurements.
  • When totals must match, consider banker's rounding, or round the total and adjust one item.
  • Say which rule you used whenever ties are likely, such as in grading or financial reports.

More questions

Should I round in the middle of a calculation?

No. Keep full precision through every step and round once, at the end. Rounding intermediate results lets small errors add up: three prices of $1.335 rounded to $1.34 each total $4.02, while the true total of $4.005 rounds to $4.01. Tax and payroll rules sometimes specify rounding at particular steps; then follow the rule exactly.

Does rounding 4.45 to a whole number give 4 or 5?

4. Rounding looks only at the digits after the place you keep, taken together: 0.45 is less than 0.5, so 4.45 rounds to 4. Rounding twice (4.45 → 4.5 → 5) is called double rounding and is a classic mistake; always round from the original number.

How does cash rounding work in Canada?

Since the penny was withdrawn in 2013, the total of a cash purchase is rounded to the nearest 5 cents: totals ending in 1, 2, 6 or 7 cents round down and those ending in 3, 4, 8 or 9 round up. Only the final total is rounded, after tax, and card or cheque payments are still charged to the exact cent.

What is stochastic rounding?

A rule used in machine learning and some simulations: a number is rounded up or down at random, with a probability proportional to how close it is to each neighbour. 2.3 rounds to 3 with a 30% chance and to 2 with a 70% chance. On average the rounding error is zero, even for numbers that are never exact ties.

How many decimal places should I round money to?

To the smallest coin or unit of the currency: two decimal places for the Canadian and US dollar, none for the Japanese yen. Interest rates, exchange rates and unit prices are usually kept to more places (four or six) and only the final amount owed is rounded to the cent.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy