Rounding Calculator

Round any number to a specified number of decimal places or significant figures using multiple rounding methods — standard, half-up, half-down, floor, ceiling, and truncate.

Input

MethodDescription
Standard / Half-upRound half away from zero (most common): 2.5 → 3, −2.5 → −3
Half-downRound half toward zero: 2.5 → 2, −2.5 → −2
Half-even (Banker's)Round half to nearest even digit
FloorAlways round down (toward −∞): −2.1 → −3
CeilingAlways round up (toward +∞): −2.1 → −2
TruncateRemove extra digits without rounding (toward zero)

The number is rounded exactly as typed (as a decimal, not a binary float), so 1.005 to 2 places gives 1.01. Trailing zeros are kept (1.004 to 2 places shows 1.00). Significant-figure mode uses half away from zero.

Results

Input: 3.14159265 → rounded to 2 decimal places
MethodResult
Standard (Half-up)3.14
Half-down3.14
Half-even (Banker's)3.14
Floor (round down)3.14
Ceiling (round up)3.15
Truncate3.14

Round 12.5 to a whole number and this calculator shows 13 in the Standard and Ceiling rows, but 12 in the half-down, half-even, floor and truncate rows. That is expected, not an error. The methods only disagree when a value sits exactly on the midpoint or when you push it in one direction, and seeing them lined up tells you which convention your spreadsheet, invoice or lab report is quietly using. A second tab rounds to significant figures instead of decimal places.

Walking one number through six rounding rules

Take 0.125 and round it to 2 decimal places. The calculator first slides the decimal point two places to the right: 0.125 × 10² = 12.5.

Every method now has to pick a whole number from 12.5 and slide back. In plain form the rule is result = pick(n × 10^d) ÷ 10^d, where d is the number of decimal places and pick is half-up, half-down, half-even, floor, ceiling or truncate.

Line by line: Standard gives 13 ÷ 100 = 0.13. Half-down gives 0.12. Half-even, also called banker's rounding, gives 0.12 because 12 is the even neighbour of 12.5. Floor gives 0.12, ceiling gives 0.13 and truncate gives 0.12. Trailing zeros are kept, so 1.004 at 2 places is shown as 1.00 and the number of places you asked for is always visible.

The Significant Figures tab shifts by a different amount: factor = 10^(sf − 1 − floor(log10|n|)). For 0.000456789 at 3 figures the exponent is 3 − 1 − (−4) = 6, so 0.000456789 × 10⁶ = 456.789, which rounds to 457. Dividing back gives 0.000457, and the scientific-notation card shows 4.57e-4.

The page reads your number as typed text, as an exact decimal, rather than as a binary floating-point value. That is why 1.005 at 2 places gives 1.01 in the Standard row and in ceiling, but 1.00 in half-down, half-even, floor and truncate, and why 2.675 gives 2.68 in Standard, which matches what you would do by hand. Negative numbers follow the same rules: -2.5 at 0 places is -3 in Standard, -2 in half-down, -2 in half-even, -3 in floor, -2 in ceiling and -2 in truncate. Inputs of up to 400 digits and e-notation such as 1.5e-7 are accepted.

How to Use This Calculator

  1. Type the number into Number to Round. Plain text such as 3.14159265, a negative value or e-notation such as 1.5e-7 works. Anything that is not a number gets a short message instead of a result.
  2. Choose the Decimal Places tab or the Significant Figures tab.
  3. Set the number of places (0 to 15) or figures (1 to 15). Anything outside those ranges is clamped to the nearest limit, and a note under the box says which value was used.
  4. In decimal mode, read the results table. The shaded Standard row is the one most people want; compare it with Half-down, Half-even, Floor, Ceiling and Truncate.
  5. In significant-figure mode, read the Rounded Value card and the scientific-notation card beneath it.
  6. Change the place count by one and watch which rows move. Rows that never move are telling you the digit you dropped did not matter.

Frequently Asked Questions

Which row should I use for money?

Standard (half-up) is the usual convention on invoices and tax forms, but some accounting software, and the built-in round() in languages such as Python, use half-even instead. Check which rule the other party applies, because over thousands of lines the two can differ by real money.

Why does half-even turn 0.125 into 0.12 when I was taught that 5 rounds up?

Half-even sends exact ties to the neighbour with an even last digit, so 0.125 goes down to 0.12 but 0.375 goes up to 0.38. Ties then round up about half the time and down about half the time, which stops a long column of figures from drifting upward.

Is truncate the same as floor?

Only for positive numbers. At 0 places, -2.5 floors to -3 but truncates to -2. Half-down rounds ties toward zero, so it also returns -2 for -2.5, while Standard (half-up) returns -3, away from zero.

Why does 1.005 round to 1.01 here when some tools show 1?

Many programs round the stored binary value, which for 1.005 is a hair under the decimal you typed, so they return 1.00 or 1. This page rounds the digits you typed, so 1.005 is a true tie and Standard (half-up) gives 1.01. Half-down and half-even send that tie down to 1.00.

Do trailing zeros survive when I round to significant figures?

Yes. 1.2 at 3 figures shows 1.20 in the Rounded Value card and 1.20e+0 in the scientific-notation card, so the figure count you chose stays visible, which is the form a lab report needs. A carry can add a digit before the zeros are trimmed back: 9.996 at 3 figures is 10.0.