Rounding Calculator: Decimals, Sig Figs
To round a number, look at the digit just right of the place you are keeping: 5 or more rounds up, 4 or less stays. 1234.5678 rounded to the nearest hundredth is 1234.57, and to the nearest whole number it is 1235. Type any number to round it to every common place at once.
Type a number and the answer appears straight away.
Rounded to the nearest hundredth1234.571234.5678 → 1234.57
- Nearest thousand
- 1000
- Nearest hundred
- 1200
- Nearest ten
- 1230
- Nearest whole number
- 1235
- Nearest tenth
- 1234.6
- Nearest hundredth
- 1234.57
- Nearest thousandth
- 1234.568
- 1 significant figure
- 1000
- 2 significant figures
- 1200
- 3 significant figures
- 1230
Rounding is done on the exact decimal digits you type, so results such as 1.005 to two places come out as 1.01 rather than suffering binary floating-point error.
The math behind it: Rounding
Keep the digits up to the chosen place; if the next digit is 5 or more, add 1 to the last kept digit; significant figures: count from the first non-zero digit
Pick the place you want to keep, then look one digit to the right. For 3.14159 to the nearest thousandth, the kept digits are 3.141 and the next digit is 5, so the answer is 3.142. To the nearest hundredth the next digit is 1, so 3.14 stays as it is. Rounding to tens, hundreds and thousands works the same way to the left of the decimal point: 1234.5678 becomes 1230 to the nearest ten and 1200 to the nearest hundred, and 45 rounds up to 50.
Significant figures count from the first non-zero digit, so leading zeros never count. 0.004567 to 2 significant figures is 0.0046, and to 3 it is 0.00457. For large numbers the dropped places fill with zeros: 98765 to 2 significant figures is 99000. A carry can ripple through several digits, which is why 9.996 to the nearest hundredth is 10.00.
The standard rule, round half up, sends a 5 away from zero, so 2.5 becomes 3 and -2.5 becomes -3. Banker's rounding (round half to even) sends an exact half to the nearest even digit instead: 2.5 becomes 2, 3.5 becomes 4 and 0.125 to two places becomes 0.12. It is used in statistics and some accounting systems because it does not push totals upward over many roundings. Ceiling always rounds up toward positive infinity (-2.3 becomes -2), floor always rounds down (-2.3 becomes -3), and truncating just drops the extra digits (7.89 becomes 7).
The calculator works on the exact digits you type rather than on binary floating-point numbers, which is why 1.005 to two places gives 1.01 and 2.675 gives 2.68, cases where the built-in rounding in many programming languages gives 1.00 and 2.67. To write a rounded number in powers of ten, use the scientific notation converter. The decimal to fraction converter turns a decimal into a fraction, the percent error calculator shows how far a rounded value is from the true one, and the scientific calculator handles longer sums.
Common questions
How do you round to the nearest hundredth?
Keep two digits after the decimal point and look at the third. If it is 5 or more, add 1 to the second digit; otherwise leave it. 1234.5678 rounds to 1234.57, and 2.675 rounds to 2.68.
What is 3.14159 rounded to the nearest thousandth?
3.142. The fourth decimal digit is 5, so the third digit goes up from 1 to 2. To the nearest hundredth it is 3.14, and to the nearest tenth it is 3.1.
Does 5 round up or down?
Under the usual school rule, 5 rounds up, so 2.5 becomes 3 and 45 becomes 50. Banker's rounding is the exception: an exact half goes to the nearest even digit, so 2.5 becomes 2 while 3.5 becomes 4.
How do you round to significant figures?
Start counting at the first non-zero digit, keep that many digits, and round the last one using the next digit. 0.004567 to 2 significant figures is 0.0046, and 98765 to 2 significant figures is 99000.
How do you round negative numbers?
With the standard rule, round the size of the number and keep the minus sign, so -2.5 becomes -3. Rounding down (floor) moves toward negative infinity, so -2.3 becomes -3, while rounding up (ceiling) gives -2.
You might also need
Checked and updated: