Click or drag to resize

PrecisionRangeOfMatchingNumbers Method

Determines the range of ulps that will match the specified value with the given tolerance.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static (long , long ) RangeOfMatchingNumbers(
	this double value,
	double relativeDifference
)

Parameters

value  Double
The value.
relativeDifference  Double
The relative difference.

Return Value

ValueTupleInt64, Int64
Tuple with the number of ULPS between the value and the value - relativeDifference as first, and the number of ULPS between the value and the value + relativeDifference as second value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if relativeDifference is smaller than zero.
ArgumentOutOfRangeException Thrown if value is double.PositiveInfinity or double.NegativeInfinity.
ArgumentOutOfRangeException Thrown if value is double.NaN.
See Also