Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llAbs C# (CSharp) Method

llAbs() public method

public llAbs ( int i ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger
i int
return Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger
        public LSL_Integer llAbs(int i)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return new LSL_Integer();
            // changed to replicate LSL behaviour whereby minimum int value is returned untouched.

            if (i == Int32.MinValue)
                return i;
            return Math.Abs(i);
        }
LSL_Api