[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tonumber() on negative hexadecimal strings
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 19 Apr 2011 13:43:46 -0300
> > > =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.