lua-users home
lua-l archive

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


On Mon, May 16, 2016 at 3:42 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> *Suggestion*:
> IMO, both Lua parser and tonumber() function should return correct
> float values in case of integer overflow.

That would be great. It is a pity that these correct float values do
not exist in general...


Float approximation exists always for strings of up to 308 digits (for doubles).
Yes, for even longer numbers "inf" would be a reasonable output.