# What Does ½ Really Round Off To?

**URL:** <https://boards.straightdope.com/t/what-does-really-round-off-to/939533>\
**Category:** Factual Questions\
**Created:** [April 7, 2021, 8:47am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533 "2021-04-07T08:47:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_B](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jim_b/32/4338_2.png) [@Jim\_B](https://boards.straightdope.com/u/Jim_B)\
**Post date:** [April 7, 2021, 8:47am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/1 "2021-04-07T08:47:52Z")

</div>

Believe it or not, it’s vexed me for years.

A number like 1.5 could really round off to either 1 or 2. I remember in grade school, we were taught that it rounds off to 2. No explanation was ever given though (which is what really bothered me even back then).

I took an intro to chemistry class in a local community college (I guess I can tell you it was exactly 25 years ago now). And the teacher gave us this rather complicated odd/even rule. I forget the exact details. But rounding it off was apparently contingent on whether the number was odd or even. Again, no explanation for it was given. Although I got the impression it was just the teacher’s pet theory.

So purely _SCIENTIFICALLY_ speaking (note my emphasis on the word), _what_ does ½ round off to? And please this time, give an explanation _why_ too. Thank you. 🙂

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 7, 2021, 9:01am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/2 "2021-04-07T09:01:59Z")

</div>

There’s no “scientific” answer to the question. There’s nothing complicated to the rule: a number ending in .5 rounds to the nearest even number. It’s just a convention, not some kind of universal truth.

The reason for it is to prevent bias. If all x.5 numbers rounded down or up, when we computed an average in the end we’d get a number a little less (or more) than the real average. Rounding to even helps reduce this effect (although it won’t help if, for example, all the input numbers are between 0.0 and 1.0).

---

<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:** [April 7, 2021, 9:03am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/3 "2021-04-07T09:03:52Z")

</div>

1.5 is halfway between 1 and 2.

“What does it _really_ round to?” is like asking whether the exact midpoint of a journey is closer to the start or to the destination.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 7, 2021, 11:23am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/4 "2021-04-07T11:23:32Z")

</div>

0,1,2,3,4 five digits round down  
5,6,7,8,9 five round up

Having equal numbers high/low tends to not offset the data set.

btw Some rounding is done by the odd or even value of the last digit, odd endings round one way, even round the other, so 3.3 would be rounded down to 3, while 3.2 would be rounded up to 4.

---

<div class="post-metadata">

**Author:** ![Dead\_Cat](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dead\_Cat](https://boards.straightdope.com/u/Dead_Cat)\
**Post date:** [April 7, 2021, 11:53am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/5 "2021-04-07T11:53:52Z")

</div>

> [@kanicbird](#):
>
> so 3.3 would be rounded down to 3, while 3.2 would be rounded up to 4.

Is this really done anywhere, or are you slightly misapplying the rule referred to in the first reply (where the leading number determines which way to round X.5)? It seems to me your example would introduce unnecessary inaccuracy.

---

<div class="post-metadata">

**Author:** ![Schnitte](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/schnitte/32/9033_2.png) [@Schnitte](https://boards.straightdope.com/u/Schnitte)\
**Post date:** [April 7, 2021, 11:53am UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/6 "2021-04-07T11:53:59Z")

</div>

> [@kanicbird](#):
>
> 0,1,2,3,4 five digits round down

Turning 6.0 into 6 is not rounding, as it was 6 to begin with. So you’re rounding down 1, 2, 3, 4, whereas 5, 6, 7, 8, 9 would be rounded up. That’s an asymmetry that introduces bias: There are slightly more cases where you round up than down. And that’s the bias which the odd/even rule mentioned by the OP aims to fix. A common formulation of the rule (there are various) is that 0.5 gets rounded to the nearest even integer; so 3.5 would be rounded up to 4, whereas 4.5 would be rounded down to 4. This ensures that rounding up is (roughly) as frequent as rounding down. It’s not perfect, but it saves you the troubloe of keeping track of past instances of rounding, or of having a random generator at hand.

> [@](#):
>
> btw Some rounding is done by the odd or even value of the last digit, odd endings round one way, even round the other, so 3.3 would be rounded down to 3, while 3.2 would be rounded up to 4.

I’ve never heard of such a rounding rule, and it would be a very odd one indeed. 3.2, rounded to integers, would, of course, be 3 and nothing but three. The odd/even rule applies only to a fraction of 0.5, not to fractions different from 0.5 that are simply rounded to the nearest integer.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 7, 2021, 12:20pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/7 "2021-04-07T12:20:41Z")

</div>

> [@Schnitte](#):
>
> Turning 6.0 into 6 is not rounding, as it was 6 to begin with. So you’re rounding down 1, 2, 3, 4, whereas 5, 6, 7, 8, 9 would be rounded up. That’s an asymmetry that introduces bias: There are slightly more cases where you round up than down.

It is rounding, because a value rounded to 6 is not the same as 6.0 even if the initial value is 6.0. The rounded value is not the same precision as the original data set. So it’s an apple to oranges comparison.

The 6 in rounding does not represent 6 but a range around 6, which 6.0 fits into.

---

<div class="post-metadata">

**Author:** ![tofor](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tofor/32/13727_2.png) [@tofor](https://boards.straightdope.com/u/tofor)\
**Post date:** [April 7, 2021, 12:55pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/8 "2021-04-07T12:55:49Z")

</div>

I think you are all missing the point, which is a consistent rule. When you round to a whole number, only the first decimal matters (the tenths). But there could be other decimals.

These all round to 1:  
1.49999999  
1.40000001  
1.4

These all round to 2:  
1.59999999  
1.50000001  
1.5

It’s easy to see that rounding up is the right answer for the first two, and for the third we are just being consistent.

---

<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:** [April 7, 2021, 2:25pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/9 "2021-04-07T14:25:38Z")

</div>

> [@Mangetout](#):
>
> 1.5 is halfway between 1 and 2.
> 
> “What does it _really_ round to?” is like asking whether the exact midpoint of a journey is closer to the start or to the destination.

This is correct.

It’s also correct, as @tofor pointed out, that if there are any more digits after the 5, the number is closer to 2 than to 1.

But the most general answer to “What’s the rule for rounding?” would be to answer with another question: “_Why_ are you rounding?” The rule depends on the context.

In some contexts it’s important to avoid bias, so you would follow @Dr.Strangelove’s rule (which, note, only applies if the number genuinely _ends_ in 5), which I think is the “complicated rule” that the OP alludes to. In other contexts, it just doesn’t matter that much, or there’s essentially zero probability of getting a number that’s _exactly_ halfway between two integers. And there are contexts in which, for reasons related to that particular context, you should always round up, or always round down, or never round at all.

---

<div class="post-metadata">

**Author:** ![RealityChuck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/realitychuck/32/195_2.png) [@RealityChuck](https://boards.straightdope.com/u/RealityChuck)\
**Post date:** [April 7, 2021, 2:31pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/10 "2021-04-07T14:31:51Z")

</div>

The general rule is to round to the even number.

6.5 → 6  
5.5 → 6

This means that in a group of numbers, the rounded amounts will cancel out. (Probably not entirely true, but close enough).

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [April 7, 2021, 2:32pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/11 "2021-04-07T14:32:26Z")

</div>

> [@tofor](#):
>
> It’s easy to see that rounding up is the right answer for the first two, and for the third we are just being consistent.

The difference is that both 1.4000001 and 1.4 are closer to 1 than they are to 2, but while 1.5000001 is closer to 2 than to 1, 1.5 _isn’t_. Using lots of decimal places doesn’t make the fact that x.500000000000000 is still exactly between x and x+1 go away.

Whatever your level of precision, rounding _exactly_ x.5 up to x+1 will introduce bias, while some kind of split rounding rule where x.5 is rounded up half the time and down half the time will not.

It’s possible that you don’t care about that bias, or that it’s small enough, given your data set, that the simpler rule (always round up x.5) is a better one. But don’t fool yourself into thinking it’s equal.

If you actually have 9 decimal digits in your measurement and you’re rounding to 0 (seems unlikely), then the amount of bias introduced will be very small on average, but not zero.

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [April 7, 2021, 2:44pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/12 "2021-04-07T14:44:07Z")

</div>

This “even number rule” was somehow never taught to me in grammar school, high school, or college (took a couple calc classes and a stats class – I guess we wouldn’t really round in the first.) The only rule I learned was 5 always rounds up, which I found weird for the reasons given: it quite obviously introduces bias. It wasn’t until some time after college I heard the “round to the nearest even” rule.

---

<div class="post-metadata">

**Author:** ![iamthewalrus\_3](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@iamthewalrus\_3](https://boards.straightdope.com/u/iamthewalrus_3)\
**Post date:** [April 7, 2021, 3:11pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/13 "2021-04-07T15:11:46Z")

</div>

One good way to see that the apparent symmetry between “round 0,1,2,3,4 down and 5,6,7,8,9 up” is false is to consider other number representations. Like, consider the analogous rule for binary numbers: round 0 down and 1 up.

But that would mean that to round, dropping a decimal, would add something to half the numbers and do nothing to the other half. That really obviously introduces significant bias.

---

<div class="post-metadata">

**Author:** ![GargoyleWB](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/gargoylewb/32/199_2.png) [@GargoyleWB](https://boards.straightdope.com/u/GargoyleWB)\
**Post date:** [April 7, 2021, 3:22pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/14 "2021-04-07T15:22:29Z")

</div>

The nearest-even rule only ever appeared to me in a single college chem course. All of my other physics, math, engineering never used the rule and did a simple round up regardless of odd or even.

---

<div class="post-metadata">

**Author:** ![yearofglad](https://avatars.discourse-cdn.com/v4/letter/y/b782af/32.png) [@yearofglad](https://boards.straightdope.com/u/yearofglad)\
**Post date:** [April 7, 2021, 3:31pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/15 "2021-04-07T15:31:16Z")

</div>

A previous thread on rounding:

> [@Traditional rounding 'bias'. I don't get it.](https://boards.straightdope.com/t/traditional-rounding-bias-i-dont-get-it/855085):
>
> In elementary school when I was taught how to round numbers to a whole number, I was taught that if the last digit ends in 0, 1, 2, 3, or 4, round down to ‘0’. Otherwise round up to the next digit. But later on, I was told that this introduces bias and that there are different techniques to deal with it. So I want to believe that it does cause bias because people much smarter than me in this have developed these techniques to reduce it. But I can’t convince myself of it. Can someone explain t…

---

<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:** [April 7, 2021, 3:47pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/16 "2021-04-07T15:47:58Z")

</div>

For what it’s worth, the “round 5 to even” rule is called “banker’s rounding”, because banking is one context where you very definitely don’t want to introduce bias.

Incidentally, more complicated rounding rules are possible. For instance, where’s the line of scrimmage in football? It’s always the integer yard line closest (in the judgement of the officials) to where the ball was downed (if it’s unclear which line is closer, then the officials just make a judgement call and choose one)… unless the closest integer yard line is one of the goal lines, in which case it’s rounded to 1 yard.

OK, now here’s a more subtle question: What do you do with negative numbers? Does -1.5 go to -1, because that’s rounding up, or does it go to -2, making the absolute value go up?

People who create computer arithmetic systems have to pay attention to details like this, but most folks (even scientists and engineers), to the extent that they worry about it at all, just let their computer system of choice follow its default behavior. After all, if it matters whether a terminal 5 rounds up or down, then that’s an argument that you shouldn’t have been rounding in the first place.

---

<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:** [April 7, 2021, 4:04pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/17 "2021-04-07T16:04:55Z")

</div>

> [@pulykamell](#):
>
> This “even number rule” was somehow never taught to me in grammar school, high school, or college

Me too - at school in the UK in the late 1970s/early 80s, they never introduced us to banker’s rounding - it was just taught as: Digits 0,1,2,3,4 round down; digits 5,6,7,8,9 round up.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [April 7, 2021, 4:18pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/18 "2021-04-07T16:18:02Z")

</div>

> [@Chronos](#):
>
> For what it’s worth, the “round 5 to even” rule is called “banker’s rounding”, because banking is one context where you very definitely don’t want to introduce bias.

This [round to nearest, ties to even] is the default rounding mode if you use IEEE 754 floating-point arithmetic.

> [@Mangetout](#):
>
> Me too - at school in the UK in the late 1970s/early 80s, they never introduced us to banker’s rounding - it was just taught as: Digits 0,1,2,3,4 round down; digits 5,6,7,8,9 round up.

This [ties round up] is an alternative rounding mode. So is having ties round away from zero, or towards zero, or randomly, etc.

---

<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:** [April 7, 2021, 4:30pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/19 "2021-04-07T16:30:30Z")

</div>

> [@Mangetout](#):
>
> Me too - at school in the UK in the late 1970s/early 80s, they never introduced us to banker’s rounding - it was just taught as: Digits 0,1,2,3,4 round down; digits 5,6,7,8,9 round up.

I know I’ve encountered the “banker’s rounding” rule _somewhere_, but I can’t remember where or when. Probably not before I got to college.

---

<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:** [April 7, 2021, 4:34pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/20 "2021-04-07T16:34:15Z")

</div>

I think I first encountered it when I was working with the _currency_ data type in Microsoft Access DBs - it rounds to even, and I wasn’t expecting it to

[Next page](https://boards.straightdope.com/t/what-does-really-round-off-to/939533.md?page=2)
