lua-users home
lua-l archive

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


Pierre-Yves Gérardy <pygy79@gmail.com> writes:

> Following the floating point discussion, I tried to look for a
> compilation of the various gotchas Lua beginners encounter, but I
> couldn't find one, so I decided to compile one...
>
>
> Right now, I can think of two of them:
>
> - Floating point inaccuracies. A simplified version of Patrick Rapin's
> "math.compare (x,y,delta)" [1] could be proposed as a workaround.

That's not a Lua gotcha, but a computer gotcha.

-- 
David Kastrup