A halfway digit
At two decimal places, 2.345 rounds to 2.34 with ties to even, and 2.35 with ties away from zero.
Choose both the decimal position and the rule. This calculator works from the decimal text you enter, so exact halfway cases such as 2.345 can be handled without binary floating-point surprises.
Use 2 for hundredths, 0 for whole numbers, or −2 for hundreds.
Keeping 2 digit(s) after the decimal point.
At an exact halfway point, ties to even chooses an even retained digit. Ties away from zero increases the magnitude. Floor and ceiling follow the number line, including for negative inputs.
Calculations and exports run locally in your browser. Your entries are not sent to a calculation service.
Enter a decimal number or e notation.
Choose decimal places: positive for digits after the decimal point, zero for integers, or negative for tens and larger places.
Select the rounding rule and compare the rounded value with its signed difference from the original.
At two decimal places, 2.345 rounds to 2.34 with ties to even, and 2.35 with ties away from zero.
For −2.1 at zero decimal places, floor gives −3, ceiling gives −2, and truncation gives −2.
Rounding 1499 at −2 decimal places gives 1500 with either nearest rule. The step between neighboring rounded values is 100.
Nearest rounding is incomplete without a rule for exact halfway values. Ties to even chooses the result whose retained integer digit is even. Ties away from zero chooses the result with greater magnitude. The choice matters for inputs ending in an exact half step.
Floor moves toward negative infinity, ceiling toward positive infinity, and truncation discards the fractional step toward zero. For positive numbers, floor and truncation agree. For negative numbers with a remainder, they differ.
When possible, keep the original value until the final reporting step. Rounding a number to three places and then to two can differ from rounding directly to two. The signed output difference is rounded value minus the original value, not an estimate of measurement uncertainty.
Languages and libraries choose different tie rules and often operate on binary floating-point values. This tool uses exact decimal parsing and the rule shown in the selector.
Yes. Use −1 for tens, −2 for hundreds, and −3 for thousands. The supported decimal-position range is −100 through 100.
No. A result such as 2.3400 records a formatting choice. It does not establish that an original measurement was accurate to four decimal places.