DoubleComparer.Tolerance Property

Gets or sets the relative tolerance within which two numbers compare equal.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public double Tolerance { get; set; }

Property Value

Double
A small positive real number.

Remarks

Two numbers are considered equal if the absolute value of their difference is less than Tolerance times the larger of the absolute values of the two numbers.

To be meaningful, the value of this property should be a small number larger than Epsilon.

See Also