internal override Value IsLessThanInt(IntegerValue value) { return(new Undefined()); }
internal override Value IsGreaterThanOrEqualToInt(IntegerValue value) { return(new Undefined()); }
internal virtual Value DividedByInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.Divide, value, this)); }
internal virtual Value IsNotEqualToInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.NotEqualTo, value, this)); }
internal override Value PlusInt(IntegerValue value) { return(new IntegerValue(value.Val + Val)); }
internal virtual Value MultipliedByInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.Multiply, value, this)); }
internal virtual Value IsGreaterThanInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.GreaterThan, value, this)); }
internal override Value DividedByInt(IntegerValue value) { return(new Undefined()); }
internal override Value IsNotEqualToInt(IntegerValue value) { return(new BooleanValue(value.Val != this.Val)); }
internal override Value IsLessThanOrEqualToInt(IntegerValue value) { return(new BooleanValue(value.Val <= this.Val)); }
internal override Value DividedByInt(IntegerValue value) { return(new IntegerValue((int)Math.Round(value.Val / (decimal)this.Val))); }
internal override Value MultipliedByInt(IntegerValue value) { return(new IntegerValue(value.Val * this.Val)); }
internal override Value MinusInt(IntegerValue value) { return(new IntegerValue(value.Val - this.Val)); }
internal override Value MinusInt(IntegerValue value) { return(new Undefined()); }
internal virtual Value PlusInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.Add, value, this)); }
internal override Value MultipliedByInt(IntegerValue value) { return(new Undefined()); }
internal virtual Value MinusInt(IntegerValue value) { throw new InvalidOperationException(CreateMessage(Operation.Substract, value, this)); }
internal override Value IsNotEqualToInt(IntegerValue value) { return(new Undefined()); }
internal override Value IsGreaterThanInt(IntegerValue value) { return(new BooleanValue(value.Val > this.Val)); }