Rounding Calculator
Rounded value = round(Number × 10^d) ÷ 10^d where d = decimal placesFree online tool
Enter any number and choose how many decimal places to round to.
Instant calculation
Enter any number and choose how many decimal places to round to.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Type the decimal number to round.
Type how many decimal places to keep.
Calculate to see the number rounded to the specified precision.
The formula
The calculator scales by a power of ten and rounds to the nearest integer. Exact halfway cases round toward positive infinity, so −2.5 at zero decimal places becomes −2.
Rounded value = round(Number × 10^d) ÷ 10^d where d = decimal placesCheck the method
Each example follows the same formula used by the calculator.
round(3.14159×100)÷100=round(314.159)÷100=314÷100=3.143.1412.346 rounded to two decimal places is 12.35. Rounding intermediate steps can change the final total; keep precision while calculating, then round for the intended display or payment convention.
Rounding 12.344 to two decimal places gives 12.34; rounding 12.346 gives 12.35. Rounding 1234.56 to zero decimal places gives 1235. These examples avoid exact halfway values, whose treatment can differ between accounting, programming and statistical conventions.
Rounding one third to 0.33 and then multiplying by three gives 0.99, although the exact fractions sum to 1. Store the original value when later calculations depend on it. This page uses browser numeric arithmetic, not decimal accounting or a user-selectable half-even policy. Decimal places also differ from significant figures, especially for very small or very large measurements.
These references explain the underlying concepts. They do not endorse this website or verify an individual result.
Method notes updated by Leslie.
Common questions
No. Two decimal places fixes the number of digits after the decimal point. Two significant figures count meaningful digits starting at the first nonzero digit. Halfway cases and binary floating-point representation can depend on the implementation.
Continue calculating