• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does "rounding" work in OS 9.2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Arcane date smarts (Was: Getting a folder based on creation
  • Next by Date: Re:Scripting Canto Cumulus 5.010
  • Previous by thread: Re: Does "rounding" work in OS 9.2.1
  • Next by thread: Re: Does "rounding" work in OS 9.2.1
  • Index(es):
    • Date
    • Thread