[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:40:19 -0300
> I searched for the following issue in the bug list, and it isn't there.
>
> lua
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > =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