Hi,

Don't know if you have already checked but what is your wide zero set to
in uvconfig????? It is a hex number.

This is used by universe to decide when two number are close enough to
be regarded as the same. You can make the difference bigger so that your
IF statement works how you would expect.

Another solution is to use string maths...look at SADD,SDIV,SMUL &
SSUB..

Hopes this helps 


Les Sherlock Hewkin 
Senior Developer 
Core Systems - 9951 
01604 592289 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes
Sent: 07 November 2006 22:17
To: [email protected]
Subject: RE: [U2] Why does the IF statement think these values are
different?

Steve,

a couple suggestions:
a) It shouldn't make a lick of difference, but enclose the math in
parans, just to insure the precedence you desire in the operation..

IF (INTREC+PRNREC) # (INTPAY+PRNPAY) THEN
 
b) if that doesn't change things, try something like:

WHATSUP = ABS((INTREC+PRNREC) - (INTPAY+PRNPAY))
IF WHATSUP > 0 THEN ERRMSG='ACCT/CALCULATOR MISMATCH'

HTH,
-Baker

HI All,

I don't understand why the IF statement THEN clause is executed in the
following code:

 CUSTOMCALC: 447:   IF INTREC+PRNREC#INTPAY+PRNPAY THEN
:: S
 CUSTOMCALC: 448:     ERRMSG='ACCT/CALCULATOR MISMATCH:
':(INTREC+PRNREC)'R2':'/':(INTPAY+PRNPAY)'R2'
:: INTREC/
NUMBER: 24016.35
:: PRNREC/
NUMBER: 978.56
:: INTPAY/
NUMBER: 24016.35
:: PRNPAY/
NUMBER: 978.56
:: ERRMSG/
STRING: T r L=42 `ACCT/CALCULATOR MISMATCH: 24994.91/24994.91'
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This e-mail and any 
attachments are confidential and intended solely for the use of the addressee 
only. If you have received this message in error, you must not copy, distribute 
or disclose the contents; please notify the sender immediately and delete the 
message. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This message is 
attributed to the sender and may not necessarily reflect the view of Travis 
Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">E-mail transmissions are 
not secure and Travis Perkins accepts no responsibility for changes made to 
this 
message after it was sent. Whilst steps have been taken to ensure that this 
message is virus free, Travis Perkins accepts no liability for infection and 
recommends that you scan this e-mail and any attachments. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">Part of Travis Perkins 
plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, 
Northampton, NN5 7UG. </SPAN></P>
</BODY>
</HTML>
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to