lua-users home
lua-l archive

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


>that's one of the things i would like to see in the future, an easy way of switching from double to
>floats.

This is trivial. Just look at config. It's a one-line change in config:

# Lua uses double for numbers. To change this, uncomment one of the lines below.
#NUMBER= -DLUA_NUM_TYPE=double
#NUMBER= -DLUA_NUM_TYPE=float
#NUMBER= -DLUA_NUM_TYPE=long

If you don't use make, just #define LUA_NUM_TYPE float, either in a compiler
setting box or directly in lua.h.
--lhf