This is disturbing!

Richmond Mathewson richmondmathewson at gmail.com
Thu Sep 6 16:07:10 EDT 2018


I wonder is the reason "6" and "6." are treated as the same is because 
"6." is read as "6.0"?

Late to the party, I know . . .

Richmond.

On 6/9/2018 10:34 pm, Jim Lambert via use-livecode wrote:
>> Did anyone know that "6. " is equal to "6."???
> Its somewhat similar to
> 	value(h ) is equal to value(h),
> while
> 	h  is not equal to h.
>
> Im not disturbed but appreciative that the engine tries to convert both sides to numbers when doing a comparison. Just must remember that and use more string-y ways to compare strings as only strings.
> For example other functions can reveal the strings 6.  and 6. are not the same string, such as length(6. ) is not equal to length( 6.).
>
> Jim Lambert
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list