Click or drag to resize

PrecisionRangeOfMatchingFloatingPointNumbers Method

Determines the range of floating point numbers 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 (double , double ) RangeOfMatchingFloatingPointNumbers(
	this double value,
	long maxNumbersBetween
)

Parameters

value  Double
The value.
maxNumbersBetween  Int64
The ulps difference.

Return Value

ValueTupleDouble, Double
Tuple of the bottom and top range ends.

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 maxNumbersBetween is smaller than zero.
See Also