Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: mathematical rounding...

From: alans:cuervo:stanford at: 6-Nov-2001 14:50

> --- Thomas E Conlin <[tomc--darkwing--uoregon--edu]> wrote: > > > > > > in the case of .5 there is a choice and different > > results have been in > > vouge at different times "round to the even number" > > and "random" are a > > couple of strategies I recall but I think these days > > "round towards zero" > > is expected > > (the point of these equally (in)valid strateges is > > to minimize bias) > > I've almost universally seen (except when there was > a specific reason for using another method) round > *away* from zero at 0.5 as the standard.
That would preferentially add more error to sums, and cause problems with statistics, unless you could guarantee a random distribution of positive and negative numbers in the set you are working with.
> Chris Dicely > > __________________________________________________ > Do You Yahoo!? > Find a job, post your resume. > http://careers.yahoo.com > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes. >
--Alan <[alans--cuervo--stanford--edu]>