Re: Large number bytecode weirdness on different platforms
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Large number bytecode weirdness on different platforms
- From: Rici Lake <lua@...>
- Date: 2007年1月29日 19:14:11 -0500
On 29-Jan-07, at 5:12 PM, Mike Pall wrote:
The behaviour of number parsing and output is system dependent
because Lua uses the library functions provided by the toolchain.
This makes sense because some implementations need more lines of
code for this task than Lua itself. ;-)
OK, it's a little longer than I hoped it might be (127 including
comments and test driver / 72 actually in the function) but it's still
somewhat smaller than Lua. Of course, it only does hex floats (doubles,
actually, but a simple %s/double/float/g should fix that.)
Get it here: http://primero.ricilake.net/lua/xstrtod.c