in reply to Re^2: rounding to nearest integer (rounding bias)
in thread rounding to nearest integer
I've heard that proposed many times, but I think it's a fallacy. Should you alternate between rounding N.0 up and down also? N.5 needs to be rounded up, and -N.5 needs to be rounded down.
For any integer N, for all reals in the range [ N, N+1 ), that is, including N but not quite including N+1, then N+0.5 is in the upper half of the range closest to N+1, while anything less is in the lower half of the range closest to N.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x4 rounding to nearest integer (rounding bias)
by grinder (Bishop) on May 11, 2003 at 19:56 UTC | |
by halley (Prior) on May 11, 2003 at 20:53 UTC |