lua-users home
lua-l archive

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


Am 21.08.2015 um 13:43 schröbte Liam Devine:
Lua 5.3 returns positive infinity for a negative zero denominator, which
is a change from 5.1, 5.2 and LuaJIT. Unless I am missing something,
this does not seem to be fixed in 5.3.1 or listed on the bug page[1].

liam@dmail00:~$ lua53
Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
return 1/-0
inf
os.exit()

There is no negative zero integer. Try `1/-0.0`.

Philipp