[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Float numbers equality.
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sat, 10 Aug 2013 10:59:49 +0200
> 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.