Double Comparer Constructor
Initializes a new instance of the
DoubleComparer class.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public DoubleComparer(
double tolerance
)
Parameters
- tolerance Double
- The relative tolerance.
Remarks
Two numbers are considered equal when the absolute value of their difference is less than the tolerance times the absolute value of the largest of the two numbers.
A common value for the tolerance is around 10 times the machine precision.