Free online tool

Rounding Calculator

Enter any number and choose how many decimal places to round to.

Instant calculation

Rounding Calculator

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

How to use this calculator

  1. 01

    Enter number

    Type the decimal number to round.

  2. 02

    Enter decimal places

    Type how many decimal places to keep.

  3. 03

    See rounded value

    Calculate to see the number rounded to the specified precision.

The formula

How this calculation works

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.

Rounding Calculator

Rounded value = round(Number × 10^d) ÷ 10^d where d = decimal places

Check the method

Worked examples

Each example follows the same formula used by the calculator.

Round 3.14159 to 2 decimal places?

round(3.14159×100)÷100=round(314.159)÷100=314÷100=3.143.14

Round at the end of a calculation

12.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.

Choose decimal places from the reporting task

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.

Keep an unrounded value for later arithmetic

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.

Further reading

These references explain the underlying concepts. They do not endorse this website or verify an individual result.

Method notes updated by Leslie.

Common questions

Questions about this calculation

Does decimal-place rounding mean significant figures?

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.