lua-users home
lua-l archive

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

Lua is normally built with a double number type, which is of course a
bit too short for full 64-bit integers.  It can be built for 64-bit
integer, then you lose floating-point operations.  You can use the
LNUM patch, so you can have both double and 64-bit integer types.  Or,
write an extension which wraps your 64-bit values in userdata.  The
question is: do you need proper 64-bit integer arithmetic, or do you
just want to pass these numbers around, as ids?

steve d.

On Fri, Mar 13, 2009 at 9:28 AM, wang peng <> wrote:
> Dose anybody know this?