lua-users home
lua-l archive

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


On Fri, Apr 24, 2015 at 5:21 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> IMHO, if both numbers are inside range 2^53...2^63, they should be compared
> using conversion to integers, despite of possible performance penalty.

Didn't Roberto say just that? Let me find it ...

| (In terms of implementation, it means that integer-float should be
| compared converting the float to an integer; if the conversion fails,
| the numbers cannot be equal.) That definition is simple, sounds
| sensible and easy to explain, and makes equality transitive.


Dirk, that quote is about equality (in context of discussion of table indexing issue).
I'm talking now about <, >, <=, >= (in context of discussion of possible table sorting issue).