lua-users home
lua-l archive

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


> 2) I would like to build an integer only LUA and not supporting float / double types. I understand that in luaconf.h - we need to change the following line 
> #define LUA_NUMBER      double
> 
> to
> #define LUA_NUMBER      LUA_INTEGER
> 
> Is there any other place required to accomplish the integer only LUA ?

Yes. You need to change LUA_NUMBER_SCAN LUA_NUMBER_FMT, lua_number2str,
lua_str2number, lua_strx2number, luai_nummod, luai_numpow, all in luaconf.h.