Skip to content
ENExplore Calculators

Decimal Places

Free Decimal Places calculator with clear step-by-step results.

About Decimal Places

Rounds or truncates a number to a given number of decimal places.

Formula

Formula

Rounded = round(value × 10^p) ÷ 10^p

Worked example

With the default values below, Decimal Places returns Rounded of 3.140000. Change any input above and every figure here is recalculated in your browser.

Inputs used

Number
3.14159
Decimal placesaccepts 0–12
2

Results

Rounded
3.140000
Truncated
3.140000
Places
2.00

Step by step

  1. 1Values used
  2. 2Formula
  3. 3Rounded= 3.140000
  4. 4Truncated= 3.140000
  5. 5Places= 2

Assumptions and limits

  • The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to 6 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How does this calculator work?

Rounds or truncates a number to a given number of decimal places.

Why does this matter?

Choose rounding or truncation by context.

Decimal Places – Calculate Rounded & Truncated | Calcrivo