[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Questions about lua_strx2number
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 19 Mar 2020 14:49:57 -0300
> 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.