1

**General Discussion / Rounding numbers**

« **on:**February 07, 2020, 05:31:31 PM »

While reading the post regarding rounding of numbers:

Curiosity drove me to take a look at Wikipedia. I was able to find that the reported oldest recommendation of rounding to the nearest number, with ties going to the even number was in a book from 1906. Several names are being used for this type of rounding: convergent rounding, statistician's rounding, Dutch rounding, Gaussian rounding, oddâ€“even rounding, or bankers' rounding (this last term having a bit obscure origin, since there is no strong reference about banks using it).

[...]I recalled that I learned in school the rule to round to the nearest number, with ties going to the even number. I used it in Physics, Chemistry and Statistics.

-- fixed: Unity was rounding 0.5 down to 0 instead of up to 1, which is apparently because Mathf.RoundToInt() just uses C#'s default rounding, which was designed for banks and not for games.

Curiosity drove me to take a look at Wikipedia. I was able to find that the reported oldest recommendation of rounding to the nearest number, with ties going to the even number was in a book from 1906. Several names are being used for this type of rounding: convergent rounding, statistician's rounding, Dutch rounding, Gaussian rounding, oddâ€“even rounding, or bankers' rounding (this last term having a bit obscure origin, since there is no strong reference about banks using it).