lua-users home
lua-l archive

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

 > If all this was done it would be very easy to change Lua between float and
 > double, and easier to change to int.

Indeed.  I got an unpleasant surprise the other day when I tried to
store a time_t in a Lua number.  I wound up putting it in a string,
which was OK because I was writing C code, but it would have been
tough to handle in Lua code alone.

Has anybody written a library to do arbitrary-precision arithmetic on
strings?  If not, adapting Dave Hanson's code at might not be hard...