GE Lua Documentation

Press F to search!

fsign

Definition


-- @/lua/common/mathlib.lua:1134

-- returns -1, 0, 1
function sign(x)
  return max(min((x * 1e200) * 1e200, 1), -1)
end

Callers