Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Rounding Rules' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Rounding Rules
Authored by: JonathanBoyd on Dec 12, '05 03:23:06PM

Rounding away from zero, which is what rounding up usually is, should have no net effect on the mean if you have both positive and negative numbers. If you're only using one of those though, then rounding to even certainly seems to be a better way to get the mean.

[ Reply to This | # ]
Rounding Rules
Authored by: porkchop_d_clown on Dec 12, '05 09:49:03PM

I can't imagine many common problems where the median value is zero.

Still, for most purposes the difference between the two algorithms is immaterial. If you need more precision, you should use a larger word size. ;-)

I actually just went through this with my 3rd grade daughter - I learned the even/odd rule growing up, they just taught her the round-away-from-zero rule. This caused some confusion in homework checking.

Everyone loves a clown, but no one will lend him money!

[ Reply to This | # ]