pack math.huge(inf) will get error result (nan)
Created by: Kohit
I'm using lua5.2.
in line 429:
local mant, expo = frexp(n)
when n is math.huge, mant will be -1.#IND, which will lead to nan case(line 431),
that is,
math.huge ~= unpack(pack(math.huge))
----update----
Lua 5.2.4(compiled by mingw gcc 6.3.0) and Lua 5.1.4 on windows 7(x86_64):
> =math.frexp(math.huge)
-1.#IND -1