public override IValue Divide(DecimalValue other) { return(new DecimalValue(other.Value / this.Value)); }
public override IValue Add(DecimalValue other) { return(new DecimalValue(other.Value + this.Value)); }
public override IValue Substract(DecimalValue other) { return(new DecimalValue(other.Value - this.Value)); }
public override BooleanValue LessThanOrEqualTo(DecimalValue other) { return(new BooleanValue(other.Value <= this.Value)); }
public override BooleanValue Equals(DecimalValue other) { return(new BooleanValue(other.Value == this.Value)); }
public override IValue Multiply(DecimalValue other) { return(new DecimalValue(other.Value * this.Value)); }
public override BooleanValue GreaterThanOrEqualTo(DecimalValue other) { return(new BooleanValue(other.Value >= this.Value)); }
public override IValue Divide(DecimalValue other) { return(new MoneyValue((decimal)other.Value / this.Value)); }
public override IValue Add(DecimalValue other) { return(new StringValue(this.Value + other.Value.ToString(CultureInfo.InvariantCulture))); }
public override IValue Substract(DecimalValue other) { return(new MoneyValue((decimal)other.Value - this.Value)); }
public override IValue Add(DecimalValue other) { return(new MoneyValue((decimal)other.Value + this.Value)); }
public override BooleanValue GreaterThan(DecimalValue other) { return(new BooleanValue((decimal)other.Value > this.Value)); }
public override BooleanValue LessThan(DecimalValue other) { return(new BooleanValue((decimal)other.Value < this.Value)); }
public override IValue Multiply(DecimalValue other) { return(new MoneyValue(this.Value * (decimal)other.Value)); }