How to use the calculator
Type or paste the number you want to round. Choose whether to round to a number of decimal places or significant figures, set how many, pick a rounding mode and press Round.
The result card shows the rounded value, how much rounding changed the number and, for significant figures, the same result in scientific notation. The details panel lists your number rounded to 0 through 6 decimal places with the same mode, which is handy when you are not sure how many places you need.
Decimal places can be negative: −1 rounds to the nearest ten, −2 to the nearest hundred, and so on.
Rounding modes
- Half up: round to the nearest value; an exact half goes up, toward positive infinity. 2.5 becomes 3 and −2.5 becomes −2.
- Half down: nearest value; an exact half goes down. 2.5 becomes 2 and −2.5 becomes −3.
- Half even (banker's rounding): nearest value; an exact half goes to the even neighbor. 2.5 becomes 2 and 3.5 becomes 4.
- Up (ceiling): always toward positive infinity. 1.21 becomes 1.3 and −1.29 becomes −1.2 at one decimal place.
- Down (floor): always toward negative infinity.
- Toward zero: simply cut off the extra digits, also called truncation.
- Away from zero: always increase the size of the number, so 1.21 becomes 1.3 and −1.21 becomes −1.3.
Worked examples
Two decimal places. 2.675 with half up: the digits after the second decimal are exactly 5, a tie, so it rounds up to 2.68. Many programming languages give 2.67 here, because the computer stores 2.675 as a binary value slightly below it. This calculator works digit by digit on the number you typed, so ties are real ties.
Banker's rounding. Rounding 2.5 and 3.5 to whole numbers with half even gives 2 and 4. Over many values the ups and downs balance out, which is why it is used in finance and statistics.
Significant figures. 123456 to two significant figures is 120000, or 1.2 × 10^5 in scientific notation, and 0.0012345 to three significant figures is 0.00123.
Good to know
- Leading zeros are not significant: 0.00123 has three significant figures.
- With decimal places, trailing zeros are kept, so 1.5 rounded to two places shows as 1.50.
- A whole-number result such as 120000 cannot show which zeros are significant; the scientific notation line makes that clear.
- Up to 100 digits and exponents from −100 to 100 are accepted, which covers almost any practical number.