[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to handle long long number?
- From: Matt Campbell <mattc@...>
- Date: Wed, 23 Aug 2006 19:47:21 -0500
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?
"The Accessibility Anywhere People"