Round a decimal number to decimal places or significant figures using a chosen rule. This is useful when a worksheet, measurement report or calculation specifies how ties must be handled.
How it works
The entered decimal digits are processed as integers before discarding digits, avoiding binary-shift errors such as 1.005×100. Half up means nearest with exact ties away from zero; half down means nearest with ties toward zero; half even chooses the even retained digit on a tie. Truncate always moves toward zero, ceiling toward positive infinity and floor toward negative infinity.
Worked examples
1.005 to two decimal places is exactly halfway between 1.00 and 1.01. Half up gives 1.01; half even gives 1.00 because the retained hundredths digit 0 is even. With −1.005, half up gives −1.01.
For 12345 to three significant figures, retain 123 and inspect the next digit, 4. The result is 12300, displayed as 1.23e+4 to show three significant figures. For 2.5 to zero decimal places, half even gives 2; for 3.5 it gives 4.
How to read your result
Choose 0–15 decimal places or 1–15 significant figures. Zero significant figures is invalid. The input is limited to 400 characters and a finite numeric value; very large exponents or overflowing results are rejected. Tie decisions use the entered decimal digits, but the final displayed value still uses finite binary floating-point storage. Significant-figure output retains meaningful trailing zeros. The default is half up, not banker's rounding.
For related calculations, try significant figures calculator, scientific calculator, fraction calculator.
Frequently asked questions
Why should 1.005 round to 1.01?
With half up and two decimal places, the exact entered decimal is a tie and rounds away from zero. Direct binary multiplication can fall just below the tie; this calculator decides from decimal digits instead.
How are negative ties rounded?
Half up rounds ties away from zero: −2.5 becomes −3. Half down rounds ties toward zero: −2.5 becomes −2. Half even selects the even neighbor.
What is banker's rounding?
It is round half even: on an exact tie, choose the result whose last retained digit is even. Both 2.5 and 1.5 round to 2 at zero decimal places.
How do significant figures differ from decimal places?
Decimal places count positions after the decimal point. Significant figures count meaningful digits starting with the first nonzero digit. Three significant figures can therefore require rounding before or after the decimal point.
Are ceiling and floor the same as away from or toward zero?
No. Ceiling always moves toward positive infinity and floor toward negative infinity. For −1.2, ceiling is −1 and floor is −2; truncation is −1.
Sources: Standard decimal rounding definitions; round-to-nearest, ties-to-even terminology in IEEE 754.
Last reviewed: October 27, 2026
