Unidata has no equivalent to the UV COMPARE function. -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of u2ug Sent: Friday, August 12, 2011 1:20 PM To: U2 Users List Subject: Re: [U2] Comparing numeric strings
Have you looked at the COMPARE() function ? Does the trick under universe. -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Rob Sobers Sent: Friday, August 12, 2011 1:11 PM To: U2 Users List Subject: Re: [U2] Comparing numeric strings Thanks all. I should have mentioned that I already knew about the alpha-concatenation hack. I was sort of looking for a cleaner approach. It looks like SCMP falls down on floating point numbers. That should probably be mentioned in the docs, but instead it just fails silently. ;-( -Rob On Fri, Aug 12, 2011 at 9:51 AM, Rex Gozar <rgo...@gmail.com> wrote: > In July I added to PickWiki: > > > http://www.pickwiki.com/cgi-bin/wiki.pl?UniVerse_Tips_And_Tricks#Forci > ng_string_comparison_on_numbers > > rex > > On Fri, Aug 12, 2011 at 8:15 AM, Rob Sobers <rsob...@gmail.com> wrote: > > Say you have two strings that happen to be numeric: > > > > FOO = "401.0101" > > BAR = "401.0101000" > > > > Since UniBasic is untyped, even though I've wrapped each value in > > quotes > "", > > they are treated as numbers. As a result, FOO EQ BAR evaluates to @TRUE. > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users