Click or drag to resize

PrecisionIncrement Method

Increments a floating point number to the next bigger number representable by the data type.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double Increment(
	this double value,
	int count = 1
)

Parameters

value  Double
The value which needs to be incremented.
count  Int32  (Optional)
How many times the number should be incremented.

Return Value

Double
The next larger floating point 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).
Remarks
The incrementation step length depends on the provided value. Increment(double.MaxValue) will return positive infinity.
See Also