DoubleEqualityComparer
Class in Zigurous.Math
Declaration
public sealed class DoubleEqualityComparer : IEqualityComparer<double>
Description
Compares the equality of double values using a specified amount of decimal digits to compare.
Properties
digits | The number of decimal digits to compare when determining equality. |
Constructors
DoubleEqualityComparer | Creates a new DoubleEqualityComparer with a default of 3 decimal digits to compare when determining equality. |
Methods
Equals | Checks the equality of two double values. |
GetHashCode | Returns a hash code for the double value. |