Re: Does "rounding" work in OS 9.2.1
Re: Does "rounding" work in OS 9.2.1
- Subject: Re: Does "rounding" work in OS 9.2.1
- From: Shane Stanley <email@hidden>
- Date: Thu, 01 Nov 2001 16:12:32 +1100
On 1/11/01 2:46 PM +1000, email@hidden, email@hidden, wrote:
>
And, as a member of IEEE, I urge you to use the IEEE rounding rules, by
>
calling just "round theSizeTotal" rather than "rounding as taught in school."
Aw, c'mon. The guy's rounding a number of bytes divided by 1024 * 1024. The
only time the result should be different is when the number of bytes is
exactly divisible by 512 * 1024, yes?
By my rusty maths, assuming the numbers are pretty evenly distributed, that
means his result will differ from that of the IEEE method once every 1024 *
1024 times he uses it.
And in that particular one-in-1024*1024 case, who says either result is
better? Averages don't come into it because he's not measuring averages (or
sums) of rounded values.
--
Shane Stanley, email@hidden