Example #1
0
 public INumericCell Divide(INumericCell c1)
 {
     double newValue = this.NumericValue / c1.NumericValue;
                 string newColumn = HigherColumn (c1);
                 int newRow = HigherRow (c1);
                 INumericCell result = new NumericCell (newValue, newColumn, newRow);
                 return result;
 }
Example #2
0
 protected int HigherRow(INumericCell otherCell)
 {
     return this.Row > otherCell.Row ? this.Row : otherCell.Row;
 }
Example #3
0
 protected string HigherColumn(INumericCell otherCell)
 {
     return this.Column.CompareTo (otherCell.Column) > 0 ? this.Column : otherCell.Column;
 }
 public static bool GreaterEqual(INumericCell c1,
                                          INumericCell comparison)
 {
     return c1.NumericValue > comparison.NumericValue;
 }
 public static INumericCell Add(INumericCell c1,
                                         INumericCell c2)
 {
     return c1.Add (c2);
 }