On Wed, 30 May 2001, Peter William Green wrote: > 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 Yup, we were taught that as "artillery roundoff" in the Army. Carry it out as many digits as you want... 3.124555551 = 3.125 3.124555556 = 3.125 Dale -- A train stops at a train station. A bus stops at a bus station. On my desk I have a workstation... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu