Universe 10.3

FFT.BP 'TESTEQ'

0001 A = "2.2":@VM:"2.20"
0002 B = 2.2:@VM:2.2
0003 IF A = B THEN PRINT "YES" ELSE PRINT "NO"
0004 PRINT COMPARE(A,B,"R")


Output result

NO
0

The NO indicates the string array and the numeric array are NOT the same
The "0" however indicates that as far as COMPARE on "R"ight justification they 
ARE the same

>From a mathematical standpoint, they are the same, we can see that.  The 
>system does not force a match however on a straight equality test.
COMPARE with Right just does something different however



-----Original Message-----
From: Bill Brutzman <[email protected]>
To: U2 Users List <[email protected]>
Sent: Fri, Jul 20, 2012 5:37 pm
Subject: Re: [U2] Comparing Two Dyamic Arrays


Will;
. Thanks for writing.
. I tried the true and false via the equate statement... and also tried it with 
 and 0.   All of the gory code was not included.
. In U2, it is not clear to me what is meant by "Normalizing".
--Bill
-----Original Message-----
rom: [email protected] 
[mailto:[email protected]] 
n Behalf Of Wjhonson
ent: Friday, July 20, 2012 5:30 PM
o: [email protected]
ubject: Re: [U2] Comparing Two Dyamic Arrays

) You have not set the values of true and false correctly
) You are comparing numeric strings without normalizing them

-----Original Message-----
rom: Bill Brutzman <[email protected]>
o: U2 Users List <[email protected]>
ent: Fri, Jul 20, 2012 1:49 pm
ubject: [U2] Comparing Two Dyamic Arrays

egin case
        Case array1 = array2  ;  sameThing = true
    Case 1                                ;  sameThing = false
d   case
hen I tried to use an equals sign... I did not get the right answer.
hile the COMPARE function works ok... and I presume that it is a compiler 
ing...
t is not clear to me why the equals sign has been disempowered.
nsights would be appreciated.
-Bill
_____________________________________________
-Users mailing list
[email protected]
tp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to