lua-users home
lua-l archive

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


Hello Jason:

Because Lua's only numeric data type is a floating point number (a C
double), Lua doesn't support arbitrary 64-bit integers (long longs).
However, according to the book Programming in Lua, it does support
integers up to 100,000,000,000,000. So your best bet is just to push the
long long using lua_pushnumber and let the compiler convert it to a
double. Does anyone else have additional information on this?

-- 
Matt Campbell
Lead Programmer
Serotek Corporation
www.freedombox.info
"The Accessibility Anywhere People"