public void Multiply(InterpreterResult operand) { if (DataType == ScriptDataType.Float) { this.Float = this.GetFloat() * operand.GetFloat(); } else { this.Short = (short)(this.GetShort() * operand.GetShort()); } }
private static float Difference(InterpreterResult left, InterpreterResult right) { Debug.Assert(left.DataType == ScriptDataType.Float); return(left.Float - right.GetFloat()); }