You need to edit luaconf.h and change them:
LUA_NUMBER to floatLUA_NUMBER_SCAN to "%f"LUA_NUMBER_FMT to "%.7g"l_mathop(x) to (x##f)lua_str2number to use strtof
For the last two, you probably need a C compiler that supports (some of) the C99 standard.
source share