lua-users home
lua-l archive

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


To test for all 3 special numbers (Inf, -Inf and NaN) in the same
time, one could do so :

function isspecial(n)
  n = n * 0
  return n ~= n
end