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.
Result
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
- Enter a decimal or fraction. Choose a number of decimal places or enter the positive spacing between valid round-off points.
- 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
- Decimal precision is allowed from −1,000 to 1,000, but very large exact inputs still have length and exponent limits.
- This tool does not infer the rounding method required by a report, regulation or merchant. Choose the rule the task calls for.
Sources & methodology
Related calculators
- Number Sequence Calculator: Terms and Sums
Find a term and cumulative sum for an arithmetic, geometric or Fibonacci sequence using exact integers or fractions.
- Long Division Calculator with Steps
Divide whole numbers or decimals, see the exact quotient and signed remainder, and follow the digit-by-digit work.
- Fraction Calculator: Exact Fractions and Mixed Numbers
Add, subtract, multiply, divide or simplify fractions. Enter mixed numbers, decimals or recurring decimals, and get an exact fraction plus a decimal view.