Compare.Set Default Relative Tolerance<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#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.6
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
Argument | tolerance is less than zero. |