# 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:** 2

<div class="post-metadata">

**Author:** ![Jeff\_Lichtman](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jeff_lichtman/32/1531_2.png) [@Jeff\_Lichtman](https://boards.straightdope.com/u/Jeff_Lichtman)\
**Post date:** [April 7, 2021, 7:16pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/21 "2021-04-07T19:16:50Z")

</div>

> [@Chronos](#):
>
> . . . 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.

That’s not true. The officials place the ball where they believe it was downed. They never move it up or back to the nearest yard line. If the ball was downed outside of the hash marks they move it in to where the closest hash marks are, but not necessarily directly on a yard line.

---

<div class="post-metadata">

**Author:** ![anny\_m](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@anny\_m](https://boards.straightdope.com/u/anny_m)\
**Post date:** [April 7, 2021, 7:42pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/22 "2021-04-07T19:42:29Z")

</div>

Just for the heck of it, I used Excel to round a series of numbers that ended with .5 to an integer. They all (from 0.5 to 10.5) rounded up.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [April 7, 2021, 8:48pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/23 "2021-04-07T20:48:02Z")

</div>

Note that the current version of Excel has 11 different rounding functions for the many various conventions used. There’s ROUND, ROUNDDOWN, ROUNDUP, MROUND, CEILING, CEILING.MATH, EVEN, FLOOR, FLOOR.MATH, INT, and ODD. Each of which does it a different way for a different purpose.

And if you experimented by just altering the cells’ formatting to display fewer (or no) decimal places, that’s a 12th sort of quasi-rounding that doesn’t affect the actual value used in calculations, just how it looks on the screen / paper.

See this for more on rounding in Excel:

> **[Round a number - Microsoft Support](https://support.microsoft.com/en-us/office/round-a-number-f82b440b-689d-4221-b21e-38da99d33435)**
>
> Learn about rounding numbers up, down, or to multiples or significant digits in Excel 2010. Change the number of digits that Excel displays after the decimal point.

The highlight text says Excel 2010, but the info is actually valid from Excel 2007 through current.

---

<div class="post-metadata">

**Author:** ![74westy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/74westy/32/3950_2.png) [@74westy](https://boards.straightdope.com/u/74westy)\
**Post date:** [April 7, 2021, 9:07pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/24 "2021-04-07T21:07:11Z")

</div>

Which one of those does unbiased rounding? As I suspected, there’s no mention in the link provided other than to say that ROUND() rounds up for .5 which is more information than you get from microsoft’s ROUND() page.

---

<div class="post-metadata">

**Author:** ![Melbourne](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Melbourne](https://boards.straightdope.com/u/Melbourne)\
**Post date:** [April 7, 2021, 9:18pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/25 "2021-04-07T21:18:47Z")

</div>

> [@Thudlow\_Boink](#):
>
> 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.

And also “what are you rounding”. Modern computers commonly store fractions as binary numbers, internally they don’t have ‘numbers that end in 5’ at all. Re-imagining the number as a decimal fraction, then rounding either up or down, is something people do\*, but it’s not something that has any sensible numeric explanation, because it involves rounding twice. The ‘smart’ way is to do only binary rounding as necessary, then round the final answer as part of the operation of converting from binary to decimal – an operation similar to decimal rounding, but not involving ‘5’.

\* There are other reasons for doing intermediate decimal rounding, but they have more to do with people than with numbers.

---

<div class="post-metadata">

**Author:** ![Tabco](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tabco/32/7644_2.png) [@Tabco](https://boards.straightdope.com/u/Tabco)\
**Post date:** [April 7, 2021, 9:49pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/26 "2021-04-07T21:49:05Z")

</div>

I also didn’t learn about rounding n+0.5 to the nearest even number until college physics, when error analysis and propagation was discussed. The topic was further explored in my surveying class. I had never given much though to the rule of always rounding n+0.5 _up_ to the nearest whole number, but after learning the even number rule I wondered how I never noticed the bias issue.

Someone mentioned how Excel will visibly truncate numbers to fit into cells while still retaining the “real” value of those numbers for computation purposes. Most calculators do this too. The display of many calculators limit how many digits can be shown, but there are often one or more “guard digits” which are stored in memory but not displayed. The calculator might display a computed result to 12 digits, but actually stores that result to 13 (or more) digits. You can read more about guard digits [here](https://www.rskey.org/~mwsebastian/miscprj/guard_digits.htm).

---

<div class="post-metadata">

**Author:** ![I.Dunno](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@I.Dunno](https://boards.straightdope.com/u/I.Dunno)\
**Post date:** [April 7, 2021, 10:11pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/27 "2021-04-07T22:11:03Z")

</div>

Thank you! I thought I was having deja vu all over again. It hasn’t even been a year.

And I too had never heard of Banker’s Rounding. It does at least make some sense.

---

<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, 11:39pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/28 "2021-04-07T23:39:05Z")

</div>

I misspoke-- The actual line of scrimmage is real-valued, but the reported value will be an integer, and never 0. If the line of scrimmage is 181 inches from the goal line, that’ll show up on the scoreboard as “First and goal, at the 5 yard line”, and if it’s 1 inch from the goal line, it’ll be “First and goal, at the 1”.

---

<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, 11:43pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/29 "2021-04-07T23:43:28Z")

</div>

> [@Chronos](#):
>
> The actual line of scrimmage is real-valued

So you say. I’m less certain that the universe operates on real numbers. It might use hyperreals, or even the surreal numbers.

---

<div class="post-metadata">

**Author:** ![YamatoTwinkie](https://avatars.discourse-cdn.com/v4/letter/y/cc9497/32.png) [@YamatoTwinkie](https://boards.straightdope.com/u/YamatoTwinkie)\
**Post date:** [April 8, 2021, 12:44pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/30 "2021-04-08T12:44:20Z")

</div>

> [@74westy](#):
>
> Which one of those does unbiased rounding? As I suspected, there’s no mention in the link provided other than to say that ROUND() rounds up for .5 which is more information than you get from microsoft’s ROUND() page.

I don’t think any of excel’s native rounding functions does “round half to even” which is the typical method to eliminate positive/negative bias and bias away from zero.

To get this in excel, you’re probably going to have to use a nested =IF() logic function to check for positive/negative numbers cleanly divisible by 0.5, then round _only_ those to even using MROUND(), then round the rest using ROUND().

---

<div class="post-metadata">

**Author:** ![YamatoTwinkie](https://avatars.discourse-cdn.com/v4/letter/y/cc9497/32.png) [@YamatoTwinkie](https://boards.straightdope.com/u/YamatoTwinkie)\
**Post date:** [April 8, 2021, 12:57pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/31 "2021-04-08T12:57:54Z")

</div>

This should work in Excel, where A1 is the cell value you want to round:  
=IF(MOD(A1,1)=0.5,MROUND(A1,(SIGN(A1)\*2)),ROUND(A1,0))

---

<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 8, 2021, 1:05pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/32 "2021-04-08T13:05:06Z")

</div>

> [@YamatoTwinkie](#):
>
> I don’t think any of excel’s native rounding functions does “round half to even” which is the typical method to eliminate positive/negative bias and bias away from zero.

I looked up Microsoft’s online documentation for its ROUND function, and, unless I missed it, it didn’t say which method it used to round.

It’s quite possible that some more technical documentation somewhere does specify how it does its rounding. But if not, that could mean that it’s unpsecified, and that different implementations of Excel could do it different ways. Which could cause interesting side effects, I suppose.

---

<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 8, 2021, 1:08pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/33 "2021-04-08T13:08:17Z")

</div>

They have 11 different rounding functions, and their documentation doesn’t specify how the most basic one of the lot works? That’s absolutely insane.

---

<div class="post-metadata">

**Author:** ![74westy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/74westy/32/3950_2.png) [@74westy](https://boards.straightdope.com/u/74westy)\
**Post date:** [April 8, 2021, 1:30pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/34 "2021-04-08T13:30:22Z")

</div>

Absolutely insane and absolutely typical. I work with microsoft products every day.

---

<div class="post-metadata">

**Author:** ![Quercus](https://avatars.discourse-cdn.com/v4/letter/q/7ab992/32.png) [@Quercus](https://boards.straightdope.com/u/Quercus)\
**Post date:** [April 8, 2021, 1:36pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/35 "2021-04-08T13:36:42Z")

</div>

> [@Chronos](#):
>
> They have 11 different rounding functions, and their documentation doesn’t specify how the most basic one of the lot works? That’s absolutely insane.

You haven’t dealt with, well, any commercial software, much, have you? Or maybe I should say I admire your ability to preserve your sweet childlike innocence, even in the face of experience.

Anyway, in Excel it appears Round (12.5,0) is 13 [the zero as the second argument is saying round to zero digits after the decimal]. And Round (13.5,0) gives 14. So it appears Excel Round() always rounds 0.5 up. But of course, that may be different in a different version of Excel (and I have a cynical suspicion is _is_ different, which is the reason the documentation doesn’t commit to anything. But that may be tooo cynical)

---

<div class="post-metadata">

**Author:** ![k9bfriender](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/k9bfriender/32/3283_2.png) [@k9bfriender](https://boards.straightdope.com/u/k9bfriender)\
**Post date:** [April 8, 2021, 1:39pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/36 "2021-04-08T13:39:59Z")

</div>

> [@Chronos](#):
>
> 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?

That’s where the round to even rule would create more consistency, anyway.

---

<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 8, 2021, 1:51pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/37 "2021-04-08T13:51:26Z")

</div>

Indeed, the software documentation I’m more familiar with is for software created by amateurs. Who, apparently, do a much more professional job than the actual professionals.

What I would expect is a plethora of specialized rounding functions, all with specific names like `round_m` or whatever, and each with its own specific definition. And then, the entry for the function named just `round` would just say that it’s a synonym for one of the others, whichever one the developers thought was the most generally-useful. That way, a user who really does need to be particular about exactly how their rounding works can look up exactly the one they want (even if the one they want happens to be the default one), and be sure of what they’re getting, and the casual user who doesn’t care can just say `round` and not worry about it.

At worst, if it did change between versions (sloppy, but sometimes the least-bad option), I would expect something like “In versions 7.1 through 9.3, `round` is a synonym for `round_m`, while in versions 9.4 and above, it is a synonym for `round_b`. If the exact behavior is important for your application, use of `round_m` or `round_b` is recommended.”

---

<div class="post-metadata">

**Author:** ![74westy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/74westy/32/3950_2.png) [@74westy](https://boards.straightdope.com/u/74westy)\
**Post date:** [April 8, 2021, 1:55pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/38 "2021-04-08T13:55:29Z")

</div>

Full disclosure: @LSLGuy’s link on the [11 rounding functions](https://support.microsoft.com/en-us/office/round-a-number-f82b440b-689d-4221-b21e-38da99d33435) does say:

> The **ROUND** function rounds a number containing a fraction as follows: If the fractional part is 0.5 or greater, the number is rounded up. If the fractional part is less than 0.5, the number is rounded down.

That information does not appear on the specific page for the [ROUND()](https://support.microsoft.com/en-us/office/round-function-c018c5d8-40fb-4053-90b1-b3e7f61a213c) function (where you might look if you’re wondering how that function works). It does have a few examples and, mischievously, some of them show a number on the midpoint being rounded and in every such example, round .5 up and round to even give the same answer. It’s as if they’re taunting us!

---

<div class="post-metadata">

**Author:** ![k9bfriender](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/k9bfriender/32/3283_2.png) [@k9bfriender](https://boards.straightdope.com/u/k9bfriender)\
**Post date:** [April 8, 2021, 2:23pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/39 "2021-04-08T14:23:08Z")

</div>

> [@Chronos](#):
>
> Indeed, the software documentation I’m more familiar with is for software created by amateurs. Who, apparently, do a much more professional job than the actual professionals.

Amateurs are creating something for the community. They want others to use and to build on what they have created.

Professionals are doing the least they can get away with while drawing a paycheck. Poor documentation is a means of job security.

> [@Chronos](#):
>
> And then, the entry for the function named just `round` would just say that it’s a synonym for one of the others, whichever one the developers thought was the most generally-useful.

I would generally assume that the generic round function would be the one that most of us learned in grade-school, and many never learned anything else, that a 5 and up gets rounded up. Any different rounding function should be specified.

---

<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 8, 2021, 2:29pm UTC](https://boards.straightdope.com/t/what-does-really-round-off-to/939533/40 "2021-04-08T14:29:56Z")

</div>

> [@74westy](#):
>
> Full disclosure: @LSLGuy’s link on the [11 rounding functions](https://support.microsoft.com/en-us/office/round-a-number-f82b440b-689d-4221-b21e-38da99d33435) does say:
> 
> > The **ROUND** function rounds a number containing a fraction as follows: If the fractional part is 0.5 or greater, the number is rounded up. If the fractional part is less than 0.5, the number is rounded down.

Thanks, I missed that.

> [@74westy](#):
>
> It does have a few examples and, mischievously, some of them show a number on the midpoint being rounded and in every such example, round .5 up and round to even give the same answer.

Yes, I did notice that!

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

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