|
|
||
|
On Tue, Feb 7, 2012 at 11:19 AM, Rebel Neurofog <rebelneurofog@gmail.com> wrote:
> Try printf("%d\n", (int) lua_tonumber(L, 1));
Yes, by default lua_tonumber returns a double floating-point value.
There is lua_tointeger that does the conversion.
steve d.