by ssi
8. January 2016 08:39
Round half to even
A tie-breaking rule that is less biased is round half to even, namely:
- If the fraction of y is 0.5, then q is the even integer nearest to y.
Thus, for example, +23.5 becomes +24, as does +24.5; while −23.5 becomes −24, as does −24.5.
This method treats positive and negative values symmetrically, and is therefore free of sign bias. More importantly, for reasonable distributions of y values, the expected (average) value of the rounded numbers is the same as that of the original numbers. However, this rule will introduce a towards-zero bias when y − 0.5 is even, and a towards-infinity bias for when it is odd.
This variant of the round-to-nearest method is also called unbiased rounding, convergent rounding, statistician's rounding, Dutch rounding, Gaussian rounding, odd–even rounding,[3] or bankers' rounding.
This is the default rounding mode used in IEEE 754 computing functions and operators.
by ssi
17. December 2015 14:34
4050a632-e314-4b06-a2a8-f8aa9bbbfca7|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: cartoon, programmer
Notes
by ssi
15. October 2015 15:53
93a41a80-bc6d-4854-8d00-1eb7390305d9|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: cartoon, PROD, test
Notes