[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Re: Is "==" faster than "eq" ?


> >I've been using eq everywhere but I'm getting the feeling that == is
> >faster comparing numbers.  Is that true?
> 
> I don't know about faster, but it is the more correct operator to use, as 
> the string comparison operator will not always yield correct results for 
> numbers, i.e.:
> 
>          '1' eq '1.0'    # numerically true, but will return false
> 
>          1 == 1.0        # numerically true, and will return true
> 
> Ed

Thanks Ed, I guess it just depends on the type of comparison you want to make.

- Grant
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.