Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Rounding calculator

Round any number to decimal places, significant figures, the nearest ten, hundred or thousand, or the nearest fraction. Every result is exact, with no floating-point slips.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Working with measurements? The significant figures calculator counts sig figs and applies them to sums and products.

How rounding works

Pick the step you're rounding to, like 0.01 for two decimal places. The number falls between two multiples of that step. Rounding picks one of them, and the rule decides which.

rounded = step × round(number ÷ step)

With the usual half up rule: look at the part you're dropping. Less than half a step rounds down, half or more rounds up (away from zero for negative numbers). So 2.345 to two places is 2.35, and −2.345 is −2.35.

Worked example: 1.005 to two decimal places

The step is 0.01. 1.005 sits exactly halfway between 1.00 and 1.01, so it's a tie, and half up gives 1.01. Many spreadsheet and programming functions show 1.00, because the computer stores 1.005 in binary as 1.00499999999999989…, which is just under halfway. Calcist rounds the exact decimal you typed, so ties are treated as ties.

The rounding rules compared

Rule2.53.5−2.52.6Used for
Half up34−33School math, Excel ROUND
Half to even (banker's)24−23Science and finance, to avoid bias
Half down23−23Rare; ties toward zero
Half toward +∞34−23JavaScript Math.round
Always up (ceiling)34−23Boxes or buses needed
Always down (floor)23−32Whole years of age
Toward zero (truncate)23−22Cutting off digits

Banker's rounding sends ties to the even neighbor, so over many numbers, half the ties go up and half go down. That keeps totals from drifting upward.

Significant figures and fractions

  • Significant figures count from the first nonzero digit. 0.0012345 to 3 significant figures is 0.00123; 98,765 to 2 is 99,000.
  • Nearest fraction is handy for measurements: 3.14159 inches to the nearest 1/8 is 3 1/8 (3.125).

When this doesn't apply

  • Money rules can differ: some taxes and payroll systems require a specific rounding rule. Check what your system uses.
  • Round once, at the end. Rounding in the middle of a calculation adds up errors.
  • Numbers can have up to 1,000 digits; results longer than 60 characters are shown in scientific notation.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 1.005 to 2 decimal places, half up = 1.01 ✓
  • 2.5 to a whole number, banker's rounding = 2 ✓
  • −2.5 to a whole number, half up = −3 ✓
  • 1,234.5678 to the nearest hundred = 1,200 ✓
  • 3.14159 to the nearest 1/8 = 3 1/8 ✓
  • 9.996 to 3 significant figures = 10.0 ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you round to 2 decimal places?

Look at the third decimal digit. If it's 5 or more, add 1 to the second digit; otherwise leave it. Then drop the rest. 3.14159 becomes 3.14, and 2.675 becomes 2.68.

What is 1.005 rounded to two decimal places?

1.01 with the usual half-up rule. Some software shows 1.00 because of how computers store decimals in binary.

What is banker's rounding?

Round half to even: a value exactly halfway goes to the even neighbor. 2.5 becomes 2 and 3.5 becomes 4. Anything not exactly halfway rounds normally.

How do you round to the nearest hundred?

Look at the tens digit. 50 or more rounds up; below 50 rounds down. 1,249 becomes 1,200 and 1,250 becomes 1,300.

How do you round negative numbers?

With half up (the school rule), round the size and keep the sign: −2.5 becomes −3. Ceiling rounds toward +∞, so −2.5 becomes −2, and floor goes to −3.

Related calculators