Rounding Calculator: Decimal Places or Fractions

Round an exact number to a chosen decimal place or positive increment, with a separate rule for ties and negative numbers.

Try −2 (type -2) for rounding to the nearest hundred.
For example, 1/8 or 0.05.

Example: 1,250.50. Use a period for decimals.

Result

Enter values and select Calculate.

How is this calculated?

Find the multiple of the chosen step according to the selected direction or tie rule.

Worked example: Resolve an exact halfway value using the even hundredth

2.345 is exactly between 2.34 and 2.35. With ties to even, the retained hundredth digit is 4, so the result is 2.34. A rule that sends ties away from zero would produce 2.35.

Method and limits

Calculations use exact rational arithmetic, without floating-point tie effects. The rounding rules specify what happens to a tie for negative inputs as well as positive ones.

How to use this calculator

  1. Enter a decimal or fraction. Choose a number of decimal places or enter the positive spacing between valid round-off points.
  2. Pick the rule that describes whether the result moves to the closest point, moves in a fixed direction, or breaks exact ties a specified way.

Compare exact ties at the hundredth place

2.345 rounded to two places with ties to even is 2.34. With ties away from zero it is 2.35. Both distances are exactly 0.005.

Negative places move to the left of the point

A precision of −2 means a step of 100. For example, the nearest hundred to 1,264 is 1,300. For nearest rounding a negative precision is still a place value, not a sign for the result.

A fraction sets the spacing between valid outputs

With step 1/8, permitted values include 0, 1/8, 1/4 and 3/8. For a measurement of 0.29, 1/4 is 0.04 away and 3/8 is 0.085 away, so the nearest allowed result is 1/4.

Separate negative direction from tie-breaking

For −2.35 to one decimal place, ceiling goes to −2.3 and floor goes to −2.4. For this exact tie, ties to even also gives −2.4 because −24 is the even integer on the 0.1 grid. For values that are not ties, nearest uses the smaller distance.

Frequently asked questions

What does ties to even check?
It checks the integer count of increments from zero. At the midpoint, choose the candidate whose count is even.
Does away from zero mean the same as ceiling?
Only for positive numbers. For negative numbers away from zero moves lower, while ceiling moves higher.
Why can a fraction result show an approximate decimal?
The fraction is exact. A parenthesized decimal is only an approximate convenience and can repeat.
Why is a zero or negative step rejected?
A step represents positive spacing along the number line. Zero produces no spacing; a negative value is not accepted as a spacing.

Common mistakes and limits

Sources & methodology

Related calculators