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

digitsThe number of decimal digits to compare when determining equality.

Constructors

DoubleEqualityComparerCreates a new DoubleEqualityComparer with a default of 3 decimal digits to compare when determining equality.

Methods

EqualsChecks the equality of two double values.
GetHashCodeReturns a hash code for the double value.