# How do you round numbers?

**URL:** <https://boards.straightdope.com/t/how-do-you-round-numbers/516440>\
**Category:** Factual Questions\
**Created:** [November 5, 2009, 5:03pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440 "2009-11-05T17:03:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![BobLibDem](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/boblibdem/32/3149_2.png) [@BobLibDem](https://boards.straightdope.com/u/BobLibDem)\
**Post date:** [November 5, 2009, 7:09pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/21 "2009-11-05T19:09:08Z")

</div>

I disagree. Suppose you measure something at 3.95. If you had one more digit of accuracy, you could have:

3.945  
3.946  
3.947  
3.948  
3.949  
3.950  
3.951  
3.952  
3.953  
3.954  
3.955

Five of those measurements are closer to 3.9, five are closer to 4.0. One is exactly halfway. They’re all equally likely , so if you always round to even (or always round to odd), you won’t have any bias in your rounding.

---

<div class="post-metadata">

**Author:** ![The\_Hamster\_King](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@The\_Hamster\_King](https://boards.straightdope.com/u/The_Hamster_King)\
**Post date:** [November 5, 2009, 7:22pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/22 "2009-11-05T19:22:25Z")

</div>

> [@ElvisL1ves](#):
>
> Think of it this way: Numbers ending in 0, 1, 2, 3, and 4 are rounded down, numbers ending in 5, 6, 7, 8, or 9 are rounded up. Five of each digit. That eliminates bias.

No. Here’s an example. Consider the complete range of different possible roundings:

3.140 -\> 3.14  
3.141 -\> 3.14  
3.142 -\> 3.14  
3.143 -\> 3.14  
3.144 -\> 3.14  
3.145 -\> 3.15  
3.146 -\> 3.15  
3.147 -\> 3.15  
3.148 -\> 3.15  
3.149 -\> 3.15

Now calculate the error terms for each:

0.000  
-0.001  
-0.002  
-0.003  
-0.004  
0.005  
0.004  
0.003  
0.002  
0.001

If we sum all these and divide by 10, we can determine the average amount of bias introduced per measurement. (Assuming all trailing digits have an equal chance of occurring.):

Average bias = 0.0005

If you always round 5’s up, you introduce a small upward bias to your data. On the other hand, if you round 5’s up half the time, and down half the time, the errors cancel out and the bias is eliminated.

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [November 5, 2009, 7:49pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/23 "2009-11-05T19:49:22Z")

</div>

Note that the ‘round to even’ is only done when it’s exactly 5, not when it’s even infinitesimally larger. E.g., rounding 10,625,000.00001 to four significant figures should round to 10,630,000.

---

<div class="post-metadata">

**Author:** ![kevlaw](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kevlaw/32/2281_2.png) [@kevlaw](https://boards.straightdope.com/u/kevlaw)\
**Post date:** [November 5, 2009, 8:48pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/24 "2009-11-05T20:48:49Z")

</div>

> [@toadspittle](#):
>
> As they discussed the rounding, her boss said that, when rounding, one should round the numbers 1,2,3,4,5 DOWN and round 6,7,8,9 UP.  
> This dumbfounded my wife. She (and I) had been taught to always round **5** and above UP, and to round **4** and below DOWN.

I was always taught to round 5 down. Every American of my acquaintance rounds 5 up. I wonder if it is a US/UK/Other thing like billions and trillions.

(I am aware that there are more sophisticated and even better ways. I am talking about plain, vanilla, unqualified rounding).

I have made similar discoveries about such things as the definition of a line (versus a curve) and a surprising number of other ideas in maths.

---

<div class="post-metadata">

**Author:** ![robby](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robby/32/11048_2.png) [@robby](https://boards.straightdope.com/u/robby)\
**Post date:** [November 5, 2009, 10:23pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/25 "2009-11-05T22:23:44Z")

</div>

> [@Johnny\_L.A](#):
>
> According to my teachers in elementary school, ‘Five or more, round up. Four or less, round down.’

This is fine for elementary school. When I taught college-level chemistry, though, I taught the round-to-even rule for fives.

Examples (if numbers are being rounded to three significant figures):  
3.135 –\> 3.14  
3.145 –\> 3.14

However, if the number being rounded is skewed slightly higher (or lower), normal rounding rules apply. More examples (if numbers are being rounded to three significant figures):  
3.13500001 –\> 3.14  
3.14500001 –\> 3.15

> [@pan1](#):
>
> Alternately you can just stop a certain number of significant digits.
> 
> If you have two significant digits after the decimal. 3.999=3.99.
> 
> This would also result in less skew, as theoretically, there would be a 3.991 as often as a 3.999, etc.

Wrong. All you are doing is consistently rounding down. This skews your data downward.

> [@pan1](#):
>
> Rounding, in any way, diminishes accuracy.

Again, wrong. Accuracy is unchanged. Rounding reduces the indicated **precision** of the data. There is a difference between these two terms (accuracy vs. precision).

---

<div class="post-metadata">

**Author:** ![robby](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robby/32/11048_2.png) [@robby](https://boards.straightdope.com/u/robby)\
**Post date:** [November 5, 2009, 10:25pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/26 "2009-11-05T22:25:45Z")

</div>

> [@kevlaw](#):
>
> …I have made similar discoveries about such things as the definition of a line (versus a curve) and a surprising number of other ideas in maths.

Like the term “maths,” I would assume. 😉 This is not a word in American English.

We have the words “mathematics” and “math,” but not “maths.”

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [November 5, 2009, 10:38pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/27 "2009-11-05T22:38:42Z")

</div>

> [@robby](#):
>
> Like the term “maths,” I would assume. 😉 This is not a word in American English.
> 
> We have the words “mathematics” and “math,” but not “maths.”

There are other places in the world where English is spoken, as I understand it. 😉

---

<div class="post-metadata">

**Author:** ![robby](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robby/32/11048_2.png) [@robby](https://boards.straightdope.com/u/robby)\
**Post date:** [November 5, 2009, 10:45pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/28 "2009-11-05T22:45:10Z")

</div>

> [@Mangetout](#):
>
> There are other places in the world where English is spoken, as I understand it. 😉

I initially had something in my post about “maths” being a Britishism, but then realized I didn’t know if the term was specific to Britain, or if it was also common in other English-speaking countries, so I omitted the reference.

Unfortunately, this had the unintended effect of making it appear that I was unaware that this is a common term outside of the U.S.

---

<div class="post-metadata">

**Author:** ![Irishman](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Irishman](https://boards.straightdope.com/u/Irishman)\
**Post date:** [November 5, 2009, 10:54pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/29 "2009-11-05T22:54:32Z")

</div>

**ElvisL1ves** said:

> [@](#):
>
> Think of it this way: Numbers ending in 0, 1, 2, 3, and 4 are rounded down, numbers ending in 5, 6, 7, 8, or 9 are rounded up. Five of each digit.

No. 0 does not get rounded. 0 is zero - it is already even. Rounding is limiting the number of digits that you are paying attention to, _while accounting for the digits beyond_. The digits beyond at 0 are zero, they do not need to be accounted for.

0 is even. Every other digit is some partial amount that must be accounted for. That leaves 1, 2, 3, and 4 going down, 5, 6, 7, 8, and 9 going up. That is 4 down, 5 up.

That’s why round to even (which I hadn’t heard of before) is better.

And yes, it only applies to exactly 5 in the last place.  
\*\*toadspittle \*\* said:

> [@](#):
>
> Please expand on this concept. What would you round to in the following cases:
> 
> 3.390  
> 3.393  
> 3.387  
> 3.383

3.39  
3.39  
3.38  
3.38

What’s the confusion? Round to even only applies to a 5 in the last place.

3.385 would be 3.38  
3.395 would be 4.00  
**pan1** said:

> [@](#):
>
> Alternately you can just stop a certain number of significant digits.
> 
> If you have two significant digits after the decimal. 3.999=3.99.
> 
> This would also result in less skew, as theoretically, there would be a 3.991 as often as a 3.999, etc.
> 
> Rounding, in any way, diminishes accuracy.

No, truncating is _less_ accurate. To take **BobLibDem** ’s example, average the following:

```auto

meas trunc round
3.945 = 3.94 3.94
3.946 = 3.94 3.95
3.947 = 3.94 3.95
3.948 = 3.94 3.95
3.949 = 3.94 3.95
3.950 = 3.95 3.95
3.951 = 3.95 3.95
3.952 = 3.95 3.95
3.953 = 3.95 3.95
3.954 = 3.95 3.95
3.955 = 3.95 3.96
--------------------
Average
3.950 = 3.945 3.950

```

As you can see, truncating skews downward, rounding (to even) does not skew.

**toadspittle** said:

> [@](#):
>
> My wife was having a discussion with her manager yesterday about how they should be recording their lab measurements. One piece of equipment is really only accurate to 2 decimal places, even though they sometimes get readings to 3 decimal places. They were debating whether to record all 3 decimal places, to truncate the numbers at 2 decimal places, or to round the 3rd decimal place up or down.

As **ElvisL1ves** said:

> [@](#):
>
> As for the third digit on the gauge, do you think it’s just unreliable, or actually noise? If the former, round it, if the latter, truncate it.

I would keep all numbers all the way through the process, and round once at the end to whatever sig digits for your use.

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [November 5, 2009, 10:55pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/30 "2009-11-05T22:55:30Z")

</div>

One more thing. Even if you only really believe it’s correct to two decimal digits of precision, you might want to leave a three digit number as-is. Suppose you get a reading of 9.95, so you figure that the actual value is in the range of 9.9 to 10. By the rules of rounding, above, you would round to 10. But by your own initial estimate, the actual value could very well be 9.9. You’ve just doubled the potential error in this value from 0.05 to 0.1.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 5, 2009, 11:20pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/31 "2009-11-05T23:20:09Z")

</div>

One argument for rounding fives up (as opposed to rounding them down, at least) is that you don’t know what might have been done to the numbers before you got them. If someone else tells you that a measurement is 13.5 cm, it’s possible that they’ve already lost some digits. In particular, it’s possible that your source has (incorrectly) truncated instead of rounding, in which case rounding up will get you closer to the true value than rounding down will.

---

<div class="post-metadata">

**Author:** ![ElvisL1ves](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@ElvisL1ves](https://boards.straightdope.com/u/ElvisL1ves)\
**Post date:** [November 5, 2009, 11:42pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/32 "2009-11-05T23:42:33Z")

</div>

> [@Irishman](#):
>
> No. 0 does not get rounded. 0 is zero - it is already even.

I’m not sure you get the point there. Half of all digits go to the ten on the low side, the other half go the ten on the high side. One of the ten digits doesn’t have far to go, though.

**Hamster King** , do schools no longer teach about significant figures? If you’re rounding off insignificant ones, then they’re noise. There is no “error” of the sort you’ve analyzed; the numbers you’re eliminating have to be considered random garbage. Rounding 5’s up eliminates long-term error in the way that random garbage is handled.

If the numbers you’re eliminating are significant, then keep them until the end and save any rounding for the final result. But then round a 5 up.

---

<div class="post-metadata">

**Author:** ![Alex\_Dubinsky](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Alex\_Dubinsky](https://boards.straightdope.com/u/Alex_Dubinsky)\
**Post date:** [November 5, 2009, 11:46pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/33 "2009-11-05T23:46:58Z")

</div>

> [@robby](#):
>
> Again, wrong. Accuracy is unchanged. Rounding reduces the indicated **precision** of the data. There is a difference between these two terms (accuracy vs. precision).

Wait, don’t you mean it reduces accuracy (correspondence with ‘truth’) but preserves precision (repeatability / lack of randomness)?

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [November 6, 2009, 12:07am UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/34 "2009-11-06T00:07:21Z")

</div>

> [@ElvisL1ves](#):
>
> I’m not sure you get the point there. Half of all digits go to the ten on the low side, the other half go the ten on the high side. One of the ten digits doesn’t have far to go, though.

In only four of the five cases you are describing as ‘down’, does the value of the number change, but in all five of the ‘up’ cases, it changes - you are incorrect in saying the method eliminates bias.

---

<div class="post-metadata">

**Author:** ![Punoqllads](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Punoqllads](https://boards.straightdope.com/u/Punoqllads)\
**Post date:** [November 6, 2009, 12:09am UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/35 "2009-11-06T00:09:27Z")

</div>

No. Irishman’s right. in the case when there is exactly one terminal digit, always rounding 0.5 up will introduce a bias. E.g., when it’s the tenths digit, (0.0 - 0.1 - 0.2 - 0.3 - 0.4 + 0.5 + 0.4 + 0.3 + 0.2 + 0.1) / 10 = 0.05. By rounding 0.5 up half the time and down half the time you get (0.0 - 0.1 - 0.2 - 0.3 - 0.4 - 0.5 \* 0.5 + 0.5 \* 0.5 + 0.4 + 0.3 + 0.2 + 0.1) / 10 = 0.0, i.e., no bias, assuming that the times when you round 5 up versus when you round 5 down aren’t themselves biased to be in correlated parts of your calculations.

Now, extending that to more than 10 cases, to rounding with two digits to be removed, always rounding up 50 through 59, you get an average bias of (0.00 - 0.01 - 0.02 - … - 0.49 + 0.5 + 0.49 + 0.48 + … + 0.01) / 100 = 0.005. One-tenth as large, but still there. Now, if you round only 0.50 up half the time and down half the time you will again go back to having 0 bias.

---

<div class="post-metadata">

**Author:** ![The\_Hamster\_King](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@The\_Hamster\_King](https://boards.straightdope.com/u/The_Hamster_King)\
**Post date:** [November 6, 2009, 12:45am UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/36 "2009-11-06T00:45:11Z")

</div>

> [@ElvisL1ves](#):
>
> If you’re rounding off insignificant ones, then they’re noise. There is no “error” of the sort you’ve analyzed; the numbers you’re eliminating have to be considered random garbage.

If they’re truly “random garbage” then you might as well just truncate them. They don’t contain any information at all.

But with most instruments the final digit contains some information, even though it might not be exactly correct. For example, if I look at my digital thermometer and it says 98.1, I can reasonably assume that my actual body temperature is closer to 98 than 99, even though I know it’s probably not exactly 98.1. Similarly, if it says 98.9 I can assume the converse. The final digit is not “random garbage”.

If the thermometer reads 98.2 or 98.3 or 98.4 then, again, it’s more likely that my actual temperature is closer to 98 than 99. And if it reads 98.8, 98.7, or 98.6 then it’s more likely that my actual temperature is closer to 99 than 98.

But what to do about 98.5? It’s equidistant from 98 and 99! With the other digits I could have confidence that by rounding high or low I was minimizing my error. But with 98.5 my expected error is the same either way.

If you’re just taking one measurement, it doesn’t really matter. You can round up or down on 98.5 – they’re both equally good approximations of my actual temperature. But if you consistently round decimals that end in 5 in only one direction, and you take lots of measurements, and do something like add them all up and average them, then you’ll be introducing a slight bias into the data. You’re better off if you round “.5 cases” up half the time, and down half the time. And the “round .5 to even” rule is a decent way of approximating that.

(Although it’s not absolute. For example, if the next digit doesn’t have a 50/50 distribution between even and odd values, the “round .5 to even” rule might introduce a slightly different bias. You need to look closely at the expected values of the data you’re measuring.)

And yes, it’s better to save rounding to the end. However that’s not always possible. If you’re performing digital calculations you often have to round at intermediate stages because of precision limitations. Or data that was intended for one purpose may be reanalyzed later using different analytical tools.

---

<div class="post-metadata">

**Author:** ![robby](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robby/32/11048_2.png) [@robby](https://boards.straightdope.com/u/robby)\
**Post date:** [November 6, 2009, 3:31pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/37 "2009-11-06T15:31:01Z")

</div>

> [@Alex\_Dubinsky](#):
>
> Wait, don’t you mean it reduces accuracy (correspondence with ‘truth’) but preserves precision (repeatability / lack of randomness)?

No, if you round properly, the data should not be skewed upward or downward. This means that accuracy is preserved. However, when you round, you lose significant figures, which means that you lose precision.

When you buy an expensive measuring instrument, you are paying for precision. You lose this precision when you round.

For example, if I use a sophisticated mass balance, and measure a sample to have a mass of 3.8563 g, but then round the measurement to 3.86 g, I have lost precision. I could have just used a cheaper instrument to have gotten the same answer (i.e. 3.86 g).

Accuracy is completely separate, and is dependent on calibration of the instrument in question.

---

<div class="post-metadata">

**Author:** ![Nava](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nava](https://boards.straightdope.com/u/Nava)\
**Post date:** [November 6, 2009, 3:40pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/38 "2009-11-06T15:40:03Z")

</div>

I don’t understand this “round to even” thing.

3.5 is as close to 4.0 as to 3.0 - are you saying that it should be to 4.0 because 4 is even?

Ever since it came up, I’ve been taught to round 5 up. In Spain, accountants (that includes banks) are required to round 5 up by law. And in complex calculations, the “ghost numbers” are dragged along, and the rounding takes place only once the calculations are finished.

Note that “precision” isn’t the same as “having a ton of figures.” If your machine has an error of ±0.1, giving two decimals doesn’t contain any more real information than giving one, and it’s misleading. There’s a difference between “we’re very precise” and “we’re very carefully tracking the noise.”

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [November 6, 2009, 3:46pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/39 "2009-11-06T15:46:09Z")

</div>

> [@kevlaw](#):
>
> I was always taught to round 5 down. Every American of my acquaintance rounds 5 up.

A good reason to round 5 up is that, if there are any more (nonzero) digits _after_ the 5, it should definitely be rounded up: 36.503 is closer to 37 than it is to 36.

This is roughly the same reason noon is generally considered 12:00 p.m. Even though 12:00 exactly is neither ante- nor post-meridiem, 12:01 p.m. is.

---

<div class="post-metadata">

**Author:** ![kevlaw](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kevlaw/32/2281_2.png) [@kevlaw](https://boards.straightdope.com/u/kevlaw)\
**Post date:** [November 6, 2009, 4:27pm UTC](https://boards.straightdope.com/t/how-do-you-round-numbers/516440/40 "2009-11-06T16:27:22Z")

</div>

> [@Thudlow\_Boink](#):
>
> A good reason to round 5 up is that, if there are any more (nonzero) digits _after_ the 5, it should definitely be rounded up: 36.503 is closer to 37 than it is to 36.

Oh absolutely. If there are decimals after the 5, round up. That’s the rule I was taught.

But if its exactly 5, the choice is arbitrary. I proposed that it’s also cultural, Americans round up, Englishman round down.

Can any other Englishmen confirm? Or am I misremembering?

[Previous page](https://boards.straightdope.com/t/how-do-you-round-numbers/516440.md?page=1)

[Next page](https://boards.straightdope.com/t/how-do-you-round-numbers/516440.md?page=3)
