[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Numeric types, overhead and precision loss
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 18 May 2007 09:44:44 -0300
> 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