lua-users home
lua-l archive

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


> What is the best way, for test float equality?

Since everybody else is clearly expert enough not worry about
the following point, I suppose it does not need mentioning. But
still …

Once you have a satisfactory `float_eq` function, don't think that

debug.setmetatable(0.0,{__eq=float_eq})

will hencefore allow you to test `if a==b` by that metamethod.
Please do not think that.