[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Conversion of strings to numbers and numbers to strings.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 30 May 2006 09:01:31 -0300
> > By the way, I was surprised by the result of
> > return '-0x1' + 0
Do no use negative hexadecimal constants. Try this instead.
return -'0x1' + 0
Perhaps the manual should say "Lua also accepts UNSIGNED integer
hexadecimal constants"... It does sau something like that in the
explanation of tonumber.