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);
}