Beispiel #1
0
 public bool ApproxEqual(DoubleItem rhs, double tol)
 {
     double delta = this.DoubleValue - rhs.DoubleValue;
     return Math.Abs(delta) < tol;
 }
Beispiel #2
0
 public bool IsEqual(DoubleItem rhs)
 {
     return ApproxEqual(rhs, tolerance);
 }