| | From: Richard Herz <[EMAIL PROTECTED]> | | Subject: Re: Math errors, HELP! | | Date: Tue, 14 Aug 2001 14:15:45 -0700 | | | | | | 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! ............. Oh dear, I am still having grief with the rounding function, and it seems like a bug to me. I put this into the message box put round(1 * 0.50 * 76.35, 2) Now, this should resolve to round(38.175, 2) = 38.18. But try it, it returns 38.17. EEK, a BUG! If someone can suggest a work around, I'd be very grateful. Sadhu Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.