I\'m fairly new to Lua. While testing I discovered #INF
/#IND
. However, I can\'t find a good reference that explains it.
What are #INF>
@YuHao has already pointed out what means +/-1.#INF (+-inf) and -1.#IND (nan), so I will just add how to deal with it (which I just needed to) in Lua:
local function isINF(value)
return value == math.huge or value == -math.huge
end
local function isNAN(value)
return value ~= value
end