I stand corrected. I'm at a loss to explain the behaviour, but it's got to do with 'E' or 'e'...
Bad news: this doesn't work, either! <@IFEQUAL 39149E20021231 39006E20021231> Problem </@IF> Talk about a gotcha! On Tue, 18 Mar 2003, Kevin Quinn wrote: > I agree that an @IF or @IFEQUAL should be used, but I disagree about the > quotes. In T2K, <@CALC "'39149E20021231'='39006E20021231'"> = 1, but > <@CALC "'39149Z20021231'='39006Z20021231'"> = 0. The substitution is > still taking place, despite the single quotes. > > -----Original Message----- > From: Jesse Parker [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2003 4:31 PM > To: [EMAIL PROTECTED] > Subject: RE: Witango-Talk: When are these strings equal (Tango 2k) > > > Kevin, you're right about E being a constant, but the single quotes > supress substitution. I think Anthony has run into a limitation of the > math library - the thing that evaluates <@CALC> expressions. This > sounds vaguely familiar... > > I think <@IFEQUAL> is the tag for this problem. It works on big things. > > On Tue, 18 Mar 2003, Kevin Quinn wrote: > > > 'E' is a defined CALC variable. Unless you're planning on using > > natural logs, don't use E. Try a 'Z' or something. > > > > -----Original Message----- > > From: Anthony M. Humphreys [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 18, 2003 3:34 PM > > To: [EMAIL PROTECTED] Com (E-mail) > > Subject: Witango-Talk: When are these strings equal (Tango 2k) > > > > > > > > I was doing this comparison and it was True in Tango 2k!! > > > > <@CALC "'39149E20021231'='39006E20021231'"> > > > > In this particular data set the last eight characters are always equal > > > anyways, so I was able to work around it by truncating the last eight > > chars in the comparison like so: > > > > <@CALC EXPR="'<@LEFT STR="39149E20021231" NUMCHARS="<@CALC > > 'len(39149E20021231) - 8'>">'='<@LEFT STR="39006E20021231" > > NUMCHARS="<@CALC 'len(39006E20021231) - 8'>">'"> > > > > But still, these two strings are NOT equal by any stretch of the > > imagination. Any one care to guess what Tango has done to compare > > these two strings equal? > > > > I'd hate to run into this one again! > > > > > > ______________________________________________________________________ > > __ > > TO UNSUBSCRIBE: send a plain text/US ASCII email to > [EMAIL PROTECTED] > > with unsubscribe witango-talk in the message body > > > > > > ______________________________________________________________________ > > __ > > TO UNSUBSCRIBE: send a plain text/US ASCII email to > [EMAIL PROTECTED] > > with unsubscribe witango-talk in the message body > > > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
