Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!agate!dog.ee.lbl.gov!nosc!humu!pegasus!tleylan From: tleylan@pegasus.com (Tom Leylan) Newsgroups: comp.databases Subject: Re: Clipper round() problem Message-ID: <1991Jun28.221946.8098@pegasus.com> Date: 28 Jun 91 22:19:46 GMT References: <1991Jun27.095337.11969@vaxa.strath.ac.uk> Organization: Pegasus, Honolulu Lines: 16 In article <1991Jun27.095337.11969@vaxa.strath.ac.uk> cnas09@vaxa.strath.ac.uk writes: > > Can anyone explain the (to me) rather peculiar behaviour of the round() >routine in Clipper 5? If you do something like round(37*1.175, 2) then round() >correctly reports 43.48 but using round(39*1.175, 2) gives 45.82 when it should >have rounded it up to 45.83! > Aaron, As a followup to my own message... I just tried the two examples you gave on my copy of Clipper 5.01 and I get the correct answers for both of them. Are you using the original version of 5.0 ? That might have something to do with it. tom