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

but n+1 is in the next set. the range should be from n to

n+0.999999999999(recurring)

example.

Here are 10 numbers ( fairly equally distributed between 0 and 1, i.e they

are not biased toward either end) , round them to the nearet integer, then

take the average. Also take the average of the numbers - they should be the

same if the rounding method works

0.05 0.15 0.25 0.35 0.45 0.55 0.65 0.75 0.85 0.95

rounded intergers are: 0 0 0 0 0 1 1 1 1 1 (my method)

average of integers is 0.5

average of actual numbers is 0.5

Regards, Kevin

{Original Message removed}

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