www.piclist.com/techref/index.htm?key=brain+burp+rounding

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

> values.

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.

-Roman

--

http://www.piclist.com hint: To leave the PICList

piclist-unsubscribe-requestspamBeGoneSTOPspammitvma.mit.edu

See also: www.piclist.com/techref/index.htm?key=brain+burp+rounding