A float comparer used by Assert performing approximate comparison.
Property | Description |
---|---|
kEpsilon | Default epsilon used by the comparer. |
s_ComparerWithDefaultTolerance | Default instance of a comparer class with deafult error epsilon and absolute error check. |
Constructor | Description |
---|---|
FloatComparer | Creates an instance of the comparer. |
Method | Description |
---|---|
AreEqual | Performs equality check with absolute error check. |
AreEqualRelative | Performs equality check with relative error check. |