OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llAbs C# (CSharp) Method

llAbs() public method

public llAbs ( int i ) : OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger
i int
return OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger
        public LSL_Integer llAbs(int i)
        {
            // changed to replicate LSL behaviour whereby minimum int value is returned untouched.
            m_host.AddScriptLPS(1);
            if (i == Int32.MinValue)
                return i;
            else
                return (int)Math.Abs(i);
        }
LSL_Api