NUnit.Framework.Constraints.EqualConstraint.Ulps Property
Switches the .Within() modifier to interpret its tolerance as a distance in representable values (see remarks).

Syntax

public EqualConstraint Ulps { get; }

Value

Self.

Remarks

Ulp stands for "unit in the last place" and describes the minimum amount a given value can change. For any integers, an ulp is 1 whole digit. For floating point values, the accuracy of which is better for smaller numbers and worse for larger numbers, an ulp depends on the size of the number. Using ulps for comparison of floating point results instead of fixed tolerances is safer because it will automatically compensate for the added inaccuracy of larger numbers.

Requirements

Namespace: NUnit.Framework.Constraints
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 0.6.0.0, 1.0.0.0