Brain Burp Rounding??
Roman Black email (remove spam text)
Paul Hutchinson wrote:
This is what I would expect. The numbers x.5 are
all on the TOP half of the decimal spread, so of
course the average or total of them will be greater
than the half way mark. 0.00 to 0.49 is in the first
half, 0.50 to 0.99 is in the second half.
Just like 0 to 127 is the first half and 128 to 255
is the second half in binary.
Where you might be confused is that 0.50 is not
the half way point between 0 and 1. The half way
point is AFTER 0.4999999 and BEFORE 0.5.
So 0.5 is past the half way mark.
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