lua-users home
lua-l archive

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


> > > =tonumber("-0x10")
> 
> This is not a bug. The manual says:
> 	"In other bases, only unsigned integers are accepted."
> 	http://www.lua.org/manual/5.1/manual.html#pdf-tonumber

Oh sorry, I misread. The manual does not say explicitly what kind of string
is acceptable, but it sort of implies that for base 10 (the default), only
decimal numbers are acceptable.