Guide
Rounding to decimal places, significant figures or a multiple, and how tie rules change the answer
Rounding looks simple until a number lies exactly halfway between two candidates. Then the rule decides, and different rules give different answers. This page rounds a number in three ways, to decimal places, to significant figures and to the nearest multiple of a step, and lets you pick from eight rules for ties. When the rules disagree it lists them side by side, so you can see what each would do.
How it works
The number is read as exact decimal text and rounded with integer arithmetic on its digits, so there is no binary floating-point approximation. A number is a tie when the dropped digits are exactly one half of the last kept unit, such as the 5 in 2.675 when rounding to two places. For anything other than a tie, every rule that rounds to the nearest gives the same answer. Only the rules floor, ceiling, truncate and away from zero move numbers that are not ties.
Choosing what to round to
Decimal places can be negative: minus 1 rounds to tens and minus 2 to hundreds, so 123,456 to minus 2 places is 123,500. Significant figures count from the first non-zero digit, which suits measurements, so 123,456 to 3 significant figures is 123,000. The nearest multiple of a step rounds to units such as 5 or 0.05, which is how prices and quantities are often rounded: 17.5 to the nearest 5 is 20 under the school rule.
The tie rules
Half away from zero is the rule taught in school: 2.5 becomes 3 and −2.5 becomes −3. Half up sends ties toward positive infinity, half down toward negative infinity. Half to even, also called banker’s rounding, sends a tie to the neighbour with an even last digit. Floor and ceiling always go down and up, truncate drops the extra digits, and away from zero always increases the size of the number. The result line names the rule used.
Edge cases
Zero decimal places gives a whole number. Negative numbers mirror positive ones under half away from zero and truncate but not under floor, ceiling, half up and half down. A step of 0 or less is rejected, and so is a number of significant figures below 1. The result is written in its shortest form, so 3.10 rounded to 2 places appears as 3.1, and you should add the trailing zero yourself where a form needs fixed digits.
A worked example
Round 2.675 to 2 decimal places. The result is 2.68 under half away from zero, which is a change of +0.005. The table for the same number shows half up 2.68, half down 2.67, half to even 2.68, floor 2.67, ceiling 2.68, truncate 2.67 and away from zero 2.68. Rounding 2.5 to a whole number with half to even gives 2, a change of −0.5. 123456 to 3 significant figures is 123000, a change of −456, and 17.5 to the nearest 5 is 20, a change of +2.5.
Limits
The page rounds a single number. It does not carry rounding error through a long calculation, and it does not imitate any particular spreadsheet or programming language, where rounding of binary values can differ from what the decimal digits suggest. For money, check which rule your accounting policy or tax authority requires before relying on a result.
Related tools
- Significant Figures Calculator counts figures and applies the rules for sums and products.
- Scientific Notation Converter shows a rounded value in powers of ten.
- Fraction to Decimal Converter gives the exact digits before you decide where to round.
- Percentage Calculator is where most rounded values in daily life come from.
Checked against the current version of the Rounding Calculator on .

