Rounding Calculator

Inputs

Negative rounds to the left of the point: −1 = tens, −2 = hundreds.

Results

Rounded
—

Every rule

Half up (school rounding)
—
Half to even (banker's)
—
Round up (ceiling)
—
Round down (floor)
—
Truncate (toward zero)
—
Away from zero
—

Rounding looks simple until you meet a 5 at the end or a negative number. This calculator rounds exactly, digit by digit, and shows every common rule so you can pick the one your teacher, bank or spreadsheet uses.

How to use it

  1. Type the number.
  2. Choose the decimal places (or tap 10, 100, 1,000 to round to tens, hundreds, thousands).
  3. Pick the rule, or compare them all.

Examples: 2.345 to 2 places is 2.35 half up but 2.34 half to even. −2.5 to a whole number is −3 half up and −2 half to even. 1234.5678 to the nearest hundred is 1200.

Questions and answers

What is banker's rounding?

Halves go to the nearest even digit: 2.5 → 2, 3.5 → 4. Over many numbers the ups and downs cancel out, so totals don’t drift. It’s the default in many programming languages and in accounting.

Why do some calculators round 2.345 to 2.34?

Computers store 2.345 in binary as 2.34499999…, so naive code rounds it down. This tool works with the decimal digits you typed, so 2.345 really is halfway.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
numberThe number to round.
placesDecimal places; negative for tens (−1), hundreds (−2)…
modehalfup, halfeven, ceil, floor, trunc or up.

Example: https://toolabelle.com/rounding-calculator/#number=2.345&places=2&mode=halfeven

Related tools