private bool Equals(IntervalQuantity other) { if (!this.Unit.IsCompatible(other.Unit)) { return(false); } return(Math.Abs(this.Amount - ConvertedAmount(other)) < Tolerance); }
protected internal double ConvertedAmount(IntervalQuantity other) { return(this.Unit.ConvertedAmount(other.Amount, other.Unit)); }