lua-users home
lua-l archive

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


I will. Thank you for the advice.

On Thu, Mar 19, 2020 at 6:50 PM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> I will try to find some other value for the decimal case
> then since I am trying to use the algorithm of lua_strx2number
> but for decimal strings instead of hexadecimal.

As I said, be aware of rounding errors. Getting the result correct to
the last bit can be a chalenge. Hexadecimal is much easier, because
multiplications and divisions by powers of two are always exact.

-- Roberto