Compare.SetDefaultRelativeTolerance<T> Method

Sets the default relative tolerance to use when comparing numbers for equality.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.6
C#
public static void SetDefaultRelativeTolerance<T>(
	T tolerance
)
where T : Object, IComparable<T>

Parameters

tolerance  T
The new tolerance.

Type Parameters

T
The type of the values to compare.

Exceptions

ArgumentOutOfRangeException

tolerance is less than zero.

See Also