lua-users home
lua-l archive

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


> If it is a floating point and you use it for integer calculations, can't 
> you get unnecessary overhead? (nevermind the risk of precision loss)

No. If all calculations are done in Lua, they may even be faster. Moreover,
with double precision floating point, you get a *wider* range of integer
values. See
	http://lua-users.org/wiki/FloatingPoint
 
--lhf