lua_isinteger[-0, +0, –] int lua_isinteger (lua_State *L, int index); Returns 1 if the value at the given
luaL_addsize[-?, +?, –] void luaL_addsize (luaL_Buffer *B, size_t n); Adds to the buffer B
math.fmod (x, y) Returns the remainder of the division of x by y that rounds the quotient towards zero. (integer/float)
3.4.8 – Precedence Operator precedence in Lua follows the table below, from lower to higher priority: or and < > <= >=
luaL_getsubtable[-0, +1, e] int luaL_getsubtable (lua_State *L, int idx, const char *fname); Ensures
lua_tonumber[-0, +0, –] lua_Number lua_tonumber (lua_State *L, int index); Equivalent to
io.write (···) Equivalent to io.output():write(···).
lua_getallocf[-0, +0, –] lua_Alloc lua_getallocf (lua_State *L, void **ud); Returns the memory-allocation
math.pi The value of π.
io.input ([file]) When called with a file name, it opens the named file (in text mode), and sets its handle as the default input file. When called with a file handle, it simply
Page 15 of 36