lua-users home
lua-l archive

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


> If it is guaranteed that basic math like +, - and * on small values yield
> exact results, then I guess using ver 4.0 is acceptable.

It's up to your system's implementation of floating point, then. It's
going to be safer to use an integer number type (it's not too hard, the
relevant post gives step by step instructions), but for most applications
it shouldn't matter. I've certainly never had problems, but my apps tend
to be text processing, not numeric.