1. Home
  2. Calculators
  3. Rounding Calculator

Rounding Calculator

For students, accountants and programmers who need to know how a number rounds and why rules differ on ties.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Rounding Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table.

Features

  • Decimal places, significant figures or a multiple
  • Eight tie rules including half to even
  • All rules shown side by side
  • Exact decimal arithmetic, no float errors
  • Negative places for tens and hundreds

Supported formats

Input

  • A typed number

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Rounding Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It rounds the digits you typed exactly, so results can differ from a program that rounds a binary floating-point value.
  • Results are shown without padding, so 3.10 rounded to 3 significant figures appears as 3.1.
  • Everything runs in your browser; nothing you type is sent anywhere.

Guide

Rounding to decimal places, significant figures or a multiple, and how tie rules change the answer

Rounding looks simple until a number lies exactly halfway between two candidates. Then the rule decides, and different rules give different answers. This page rounds a number in three ways, to decimal places, to significant figures and to the nearest multiple of a step, and lets you pick from eight rules for ties. When the rules disagree it lists them side by side, so you can see what each would do.

How it works

The number is read as exact decimal text and rounded with integer arithmetic on its digits, so there is no binary floating-point approximation. A number is a tie when the dropped digits are exactly one half of the last kept unit, such as the 5 in 2.675 when rounding to two places. For anything other than a tie, every rule that rounds to the nearest gives the same answer. Only the rules floor, ceiling, truncate and away from zero move numbers that are not ties.

Choosing what to round to

Decimal places can be negative: minus 1 rounds to tens and minus 2 to hundreds, so 123,456 to minus 2 places is 123,500. Significant figures count from the first non-zero digit, which suits measurements, so 123,456 to 3 significant figures is 123,000. The nearest multiple of a step rounds to units such as 5 or 0.05, which is how prices and quantities are often rounded: 17.5 to the nearest 5 is 20 under the school rule.

The tie rules

Half away from zero is the rule taught in school: 2.5 becomes 3 and −2.5 becomes −3. Half up sends ties toward positive infinity, half down toward negative infinity. Half to even, also called banker’s rounding, sends a tie to the neighbour with an even last digit. Floor and ceiling always go down and up, truncate drops the extra digits, and away from zero always increases the size of the number. The result line names the rule used.

Edge cases

Zero decimal places gives a whole number. Negative numbers mirror positive ones under half away from zero and truncate but not under floor, ceiling, half up and half down. A step of 0 or less is rejected, and so is a number of significant figures below 1. The result is written in its shortest form, so 3.10 rounded to 2 places appears as 3.1, and you should add the trailing zero yourself where a form needs fixed digits.

A worked example

Round 2.675 to 2 decimal places. The result is 2.68 under half away from zero, which is a change of +0.005. The table for the same number shows half up 2.68, half down 2.67, half to even 2.68, floor 2.67, ceiling 2.68, truncate 2.67 and away from zero 2.68. Rounding 2.5 to a whole number with half to even gives 2, a change of −0.5. 123456 to 3 significant figures is 123000, a change of −456, and 17.5 to the nearest 5 is 20, a change of +2.5.

Limits

The page rounds a single number. It does not carry rounding error through a long calculation, and it does not imitate any particular spreadsheet or programming language, where rounding of binary values can differ from what the decimal digits suggest. For money, check which rule your accounting policy or tax authority requires before relying on a result.

Checked against the current version of the Rounding Calculator on .

Frequently asked questions

Why does a programming language round 2.675 to 2.67?

Most languages store 2.675 as a binary floating-point number that is a hair below 2.675, so it is not a tie and rounds down. This page works on the decimal digits you typed, where 2.675 is exactly halfway.

When should I use half to even?

When you round many numbers and want the total not to drift upward. Because ties go to the nearest even digit, half of them round up and half down, which is why accounting standards and many programming libraries use it.

Why does 2.675 round to 2.68 here when some programs give 2.67?

Many programs store 2.675 as a binary approximation just below it. This tool reads the digits you typed, so 2.675 is exactly halfway and rounds half away from zero to 2.68.

What is banker’s rounding?

Half to even sends an exact tie to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It avoids a steady upward bias when many numbers are rounded.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.