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#Forcing_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

Reply via email to