Ideally the value of PRX should be in internal format (ICONV) rather than in output format.
Don't know why it should suddenly start going wrong, but it would take certain values to trip it up. Maybe you've never had them before? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris van O Sent: 08 October 2004 07:30 To: [EMAIL PROTECTED] Subject: [U2] Why is this statement failing? (UniVerse) Ive found a bug that has been in production for many years, but has just started to cause problems....but I dont know exactly why... DEC.OFFSET = 10000 FOR I = 1 TO 20 FOR J = 1 TO 99 K = I "R0%2" : '.' : J "R0%2" PRX = K IF INT(PRX*DEC.OFFSET)=DEC.OFFSET*PRX THEN PRINT K : ' PASSED' END ELSE PRINT K : ' FAILED' END NEXT J NEXT I Ive fixed it by saying ..... IF (PRX*DEC.OFFSET)+0 = DEC.OFFSET*PRX THEN But I still cant dont know why it was failing....or why this hasnt been a problem in 10 years with over 50,000 transactions a day. The data are strings passed from a client app that usually look like: 80.03 120.25 100.01 12002.4 ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone +44 (0)20 7896 0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Markets Limited and IG Index Plc are authorised and regulated by the Financial Services Authority and, in Australia, by the Australian Securities and Investments Commission. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
