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



roman,

i was taught to round up if it's >= 1/2.  little different than you system - little easier

> 3.12471 = 3.125
> 3.12441 = 3.124
> 3.1245551 = 3.124
> 3.1245556 = 3.125

3.1247 = 3.125   7 >= 5 round up
3.1244 = 3.124   4 <  5 truncate
3.1245 = 3.125   5 >= 5 round up
3.1245 = 3.125   5 >= 5 round up

ie: i only check the 4th digit. if it's >= 5 round up.  if not truncate.

-pete



On Thu, 31 May 2001, Roman Black wrote:

{Quote hidden}

--
Peter Green
111 IATL                                        TakeThisOuTpeter-w-greenspamuiowa.edu
The Department of Mechanical Engineering        office: 319.335.3694
The University of Iowa                          lab:    319.335.3585
Iowa City, Iowa 52242                           fax:    319.335.5669

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


<Pine.HPX.4.21.0105301112540.24730-100000@l-ecn010.icaen.uiowa.edu>

In reply to: <3B15162F.7C9E@ezy.net.au>
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...