DoubleComparer.Tolerance Property

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

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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