MultiConvers

Rounding Calculator

Round a measurement or a money figure to a chosen number of decimal places, or to the nearest ten, hundred or thousand — half values move away from zero, not “to even.”

How to use

  1. Enter the number you want rounded.
  2. Enter the place count: 2 for hundredths, 0 for a whole number, −1 for tens, −2 for hundreds.
  3. Read the rounded value. Trailing zeros stay so you can see the requested places.
  4. Do not use this for banker’s rounding or significant figures — those are different rules.

How it works

School rounding to p decimal places looks at the next digit and, at exactly 5, steps away from zero. 3.14159 to 2 places is 3.14. 2.5 to 0 places is 3. −2.5 is −3. JavaScript’s native Math.round on negatives does not always match that; this page does, on purpose.

Negative place counts move the cut into the whole-number side. −1 is nearest 10: 146 → 150, 144 → 140. −2 is nearest 100: 1,250 → 1,300. −3 is thousands.

Banker’s rounding (half to even) would send 2.5 to 2 and 3.5 to 4 so long-run sums stay unbiased. This tool does not do that. Significant-figure rounding is also different: 0.003141 to 3 s.f. is 0.00314, not “3 decimal places.”

Place counts outside −12 to 12 are rejected so a typo does not produce a useless string of zeros. Currency that needs 3 decimals (some dinars) can use p = 3.

This is not a scientific-notation converter. 32000 rounded to −3 is 32000 already; writing 3.2 × 10^4 is the other page.

Formula

rounded = sign(x) × round(|x| × 10^p) ÷ 10^p
3.14159 to 2 places = 3.14
146 to −1 place = 150

Worked examples

  • Two decimal places

    3.14159 to 2 places → 3.14

  • Nearest ten

    146 to −1 place → 150

Useful notes

  • Half away from zero, not half to even.
  • Negative places: −1 tens, −2 hundreds, −3 thousands.
  • Place count must be between −12 and 12.

FAQ

How do I round to two decimal places?

Look at the third decimal digit. If it is 5 or more, round the second digit up. 3.14159 becomes 3.14; 3.145 becomes 3.15.

How do I round to the nearest ten or hundred?

Use a negative place count: −1 for tens, −2 for hundreds, −3 for thousands.

What happens at exactly .5?

This page rounds half away from zero. 2.5 → 3 and −2.5 → −3.

How do I round 1,849 to the nearest hundred?

Use −2 places: 1,800.

Is this the same as toFixed in JavaScript?

Not for negatives and not for the half case on every engine. Use this page when you want the school rule made explicit.

Related tools

See all Math tools.