Tom: I am running the latest patch. I ran the enclosed code and it is not truncating, it is rounding incorrectly. The value of vRawTaxAmt = 50.43 / 11. = 4.58454545... After the third line the values shows as 4.59 where the correct rounded value (TTBOMK) at 2 decimal; places should be 4.58; if the value would be truncated it would actually show 4.58. I have tried several variations with the same result. At 3 decimal places the correct rounded value should be 4.585 but a t 2 decimal places it should be 4.58. I wonder if the function incorrectly does a sequential rounding starting from the right and rounds 5.585 to 5.59, this would be incorrect. You can verify this easily by plugging the numbers into an excel spreadsheet and displaying the result formatted with 3 and 2 decimal places, the results will be 4.585 and 4.58 not 4.59. So, in short, as far as I can tell, the ROUND function rounds the value incorrectly. You should do the honors and submitted to the RDDC.
Javier Valencia, PE President Valencia Technology Group, L.L.C. 14315 S. Twilight Ln., Suite #14 Olathe, KS 66062-4571 (913)829-0888 (913)649-2904 FAX -----Original Message----- From: [EMAIL PROTECTED] [mailto:owner-rbase-l@;sonetmail.com]On Behalf Of Tom Grimshaw Sent: Friday, October 11, 2002 10:07 PM To: [EMAIL PROTECTED] Subject: Rounding Issue G'day, I appear to have a rounding issue with 6.5++ (latest beta). Is it just me or can anyone else confirm that this number appears to be being truncated rather than rounded please? SET VAR vAmtToRound CURRENCY = 50.43 SET VAR vRawTaxAmt DOUBLE = (.vAmtToRound / 11) SET VAR vCurTaxAmt DOUBLE = (ROUND(.vRawTaxAmt,2)) SET VAR vCurTaxAmt CURRENCY SHO VAR Warmest regards, Tom Grimshaw coy: Just For You Software tel: 612 9552 3311 fax: 612 9566 2164 mobile: 0414 675 903 post: PO Box 470 Glebe NSW 2037 Australia street: 3/66 Wentworth Park Rd Glebe NSW 2037 email: [EMAIL PROTECTED] web: www.just4usoftware.com.au "... the control of impulse -- is the first principle of civilization."-- Will Durant, Pulitzer Prize winning philosopher, writer and historian the most needed product in the world can be found at www.thewaytohappiness.org This email and any files transmitted with it are confidential to the intended recipient and may be privileged. If you have received this email inadvertently or you are not the intended recipient, you may not disseminate, distribute, copy or in any way rely on it. Further, you should notify the sender immediately and delete the email from your computer. Whilst we have taken precautions to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from such viruses. ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l ================================================ TO SEARCH ARCHIVES: http://www.mail-archive.com/rbase-l%40sonetmail.com/ ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l ================================================ TO SEARCH ARCHIVES: http://www.mail-archive.com/rbase-l%40sonetmail.com/
