lua-users home
lua-l archive

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

> Sounds like you were running up against the same sort of issues we were.
> It's a pain to have to use epsilon values to fix float/int conversions all
> the time, and try to find out where and why 8.99999999982 didn't convert
> correctly to integer 9 in your code.

I didn't have any problems with rounding: I was using only integral values
in the range exactly representable by double, so all calculations were exact
(I was using only +, - and logical operations).

> Theres a small error that crops up and gets worse in floating point when
> doing multiplys and divides.

...which I wasn't doing.

-- | Si hoc legere scis nimium eruditionis habes.