| From: Richard Herz <[EMAIL PROTECTED]> | Subject: Re: Math errors, HELP! | Date: Tue, 14 Aug 2001 14:15:45 -0700 | MIME-Version: 1.0 | Content-Type: text/plain; charset="US-ASCII" | Content-Transfer-Encoding: 7bit | In-Reply-To: <[EMAIL PROTECTED]> | | | The code you supplied and put into EXAMPLE 2 below works OK. EXAMPLE 1 | below shows a similar rounding problem that can occur with the MC format | function. The format function with a format of %6.2f rounds 1.3350 to 1.33, | whereas round(1.3350, 2) returns 1.34. My summer students discovered this | last week in homework 1 with similar behavior of MC format function and True | Basic's PRINT USING instruction. None of this may have solved your problem, | so good luck! Hi Rich, The clues for what I needed to do were found in your code. Everyone is aware of course that rounding, then adding is different than adding then rounding. I thought I had that covered but actually I was not using the rounding function of MC correctly. As your example shows, I needed the 2nd (optional) parameter, the ",2" which tells round to round to 2 decimal places of precision. Anyway, bug fixed, and thank you very much for your suggestions. Regards, Sadhu Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
