Tolerance
The Tolerance class generalizes the notion of a tolerance
within which an equality test succeeds. Normally, it is
used with numeric types, but it can be used with any
type that supports taking a difference between two
objects and comparing that difference to a value.
Returns a default Tolerance object, equivalent to
specifying an exact match unless DefaultFloatingPointTolerance
is set, in which case, the DefaultFloatingPointTolerance
will be used.
Returns an empty Tolerance object, equivalent to
specifying an exact match even if
DefaultFloatingPointTolerance is set.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of days.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of hours.
Returns true if the current tolerance has not been set or is using the .
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of milliseconds.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of minutes.
Gets the ToleranceMode for the current Tolerance
Returns a new tolerance, using the current amount as a percentage.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of seconds.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of clock ticks.
Returns a new tolerance, using the current amount in Ulps
Gets the value of the current Tolerance instance.
Constructs a linear tolerance of a specified amount