String or number?
Torbjörn Nordlindh
tn at nul.se
Tue Jun 19 06:07:25 EDT 2007
Jim Ault wrote:
> Seems like a bug to me.
> But if you use this form it works as expected.
>
>
>> put 123456.7890 into a
>> put 123456.7890 + 0 into b
> split a using cr and "."
> split b using cr and "."
>
> -- or
>
> split b using tab and "."
> split b using null and "."
That's interesting...
Anyway, here's the real puzzle:
If you
put 1 into a
put 1 + 0 into b
Then a is a number and b is a number and a is an integer and b is an
integer and a=b.
Split treats them differently:
split a by comma gives an array
split b by comma is still a number
So, the question is:
What's the difference between a and b?
Torbjörn
More information about the use-livecode
mailing list