lua-users home
lua-l archive

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


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