public bool Equals(double first, double second) { if (FuzzyCompare.InSameBoundary(first, second, _marginOfError, _ulpTolerance, _boundaryScale) && FuzzyCompare.AreEqual(first, second, _marginOfError, _ulpTolerance)) { return(true); } return(false); }
public bool Equals(FuzzyHashedDouble other) { if (_ulpTolerance == other._ulpTolerance && _marginOfError == other._marginOfError && _boundaryScale == other._boundaryScale && FuzzyCompare.InSameBoundary(_value, other._value, _marginOfError, _ulpTolerance, _boundaryScale) && FuzzyCompare.AreEqual(_value, other._value, _marginOfError, _ulpTolerance)) { return(true); } return(false); }
public bool Equals(double first, double second) { return(FuzzyCompare.AreEqual(first, second, _marginOfError, _ulpTolerance)); }
public bool Equals(FuzzySingle other) { return(FuzzyCompare.AreEqual(_value, other._value, _marginOfError, _ulpTolerance)); }