piclist 2001\05\30\125600a >
Thread: Brain Burp Rounding??
www.piclist.com/techref/index.htm?key=brain+burp+rounding
flavicon
face BY : Kevin Blain email (remove spam text)



Roman said.....

> How do people round numbers to the nearest decimal
> place on their pocket calculators?

and....

>
> So:
> 3.12471 = 3.125
> 3.12441 = 3.124
> 3.1245551 = 3.124
> 3.1245556 = 3.125
>
> This just can't be right!

It's not.

3.1245551 goes to 3.124 because it's greater than halfway (3.1425)

It's the old, add 5, 0.5, 0.05, etc, in your case, add 0.0005, and then
truncate it to n d.p.(in your case 3)

rule: add 5 x 10 exp -(decimal_places) then truncate to (decimal_places)
places.

That's almost how I was taught, but it's how I do it.

Regards, Kevin

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


<00eb01c0e922$4d360680$b802a8c0@bob> 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...