|
On 20/04/2011 20:47, Roberto Ierusalimschy wrote:
My point is that either tonumber accepts "-0x10", and therefore returns the correct value, or it does not accept it, and therefore returns nil. There is no other option.
Perhaps an option to say in docs that the result on negative values with bases other than 10 is "application-dependent", or "undefined". (Not that I like it).
-- Shmuel