Brain Burp Rounding??
Roman Black email (remove spam text)
David W. Gulley wrote:
> To say "NO!" is a bit emphatic, since I could just as well say that we
> will only truncate numbers, which would provide an answer which may be
> fine for some conditions.
> I understand your logic; but this is still including 500 numbers below
> the "rounded to" value and 499 above, therefore (and I repeat)
> statistically, you are favoring the round up when given a random set of
I don't understand your logic?? There are 500 values,
ie, 000 to 499, then there are 500 values in the top
half, ie, 500 to 999. The dividing point is *immediately*
before 500, ie, 499.999999999999999 (forever)
So if it starts with a 5 it absolutely must be in the
top half. There is no favoring, just accuracy.
http://www.piclist.com hint: To leave the PICList
See also: www.piclist.com/techref/index.htm?key=brain+burp+rounding
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the