Decimal rounding
Decimal rounding: use number, decimal places. Review the formula, worked example and calculation steps.
Inputs
Use the units shown—
Enter your values and select Calculate.
Formula & explanation
Rounded = round(number × 10ᵈ)/10ᵈ
Variables & units
- Number
- Numeric value · minimum -1000000000000, maximum 1000000000000
- Decimal places
- Numeric value · minimum -10, maximum 10
Worked example
1234.56789 to 2 decimal places gives 1234.57; to −2 places gives 1200.
Assumptions
Nearest rounding; exact half ties go toward positive infinity. Binary floating-point can affect decimal ties. Display is limited to six decimal places even if more are retained.
Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.
Practice with an example
Use the default input values to find the answer. The reset icon restores those values.
Calculated on your device. Your latest 100 calculations stay in this browser.