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

Grant emailgrant at gmail.com
Sat Mar 19 12:48:34 EST 2005


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


More information about the interchange-users mailing list