piclist 2001\05\30\121940a >
Thread: Brain Burp Rounding??
face BY : David W. Gulley email (remove spam text)

Roman Black wrote:
{Quote hidden}

I have used the following:

 3.12350 = 3.124 (if exactly .xxx50000, round up if previous digit odd)
 3.12450 = 3.124 (if exactly .xxx50000, round down if previous digit

The idea here is that if you are tallying a series of values, the
"random" nature of rounding some up, some down will "tend" to average
out the errors. (This is a very debatable subject!)

 3.12451 = 3.125 (greater than .xxx50 so round up)
 3.12449 = 3.124 (less than .xxx50 so round down)

following the previous two examples:
 3.1245000000001  = 3.125 (greater than .xxx50 so round up)
 3.1244999999999  = 3.124 (less than .xxx50 so round down)

for the examples you used:
3.1245551 = 3.125   (greater than .xxx50 so round up)
3.1245556 = 3.125   (greater than .xxx50 so round up)

David W. Gulley
Destiny Designs

http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamlistservspammitvma.mit.edu with SET PICList DIGEST in the body

<3B151C3A.47ACED17@destinydesigns.com> 7bit

See also: www.piclist.com/techref/index.htm?key=brain+burp+rounding
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Brain Burp Rounding??

month overview.

new search...