[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Curiosity of decimal numbers followed by concatenation
- From: Michal Kolodziejczyk <miko@...>
- Date: Fri, 05 Feb 2010 15:30:21 +0100
On 05.02.2010 00:53, Peter Cawley wrote:
>> =1...""
> stdin:1: malformed number near '1...'
Try this:
> =(1.)..""
> =tonumber(1.)..""
>> =1..""
> stdin:1: malformed number near '1..'
Use: > =(1)..""
> Are there are reasons why the third example is parsed like it currently is?
Because it is ambiguous. Use parentheses or tonumber().
Regards,
miko