Click or drag to resize

PrecisionDecrement Method

Decrements a floating point number to the next smaller 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 Decrement(
	this double value,
	int count = 1
)

Parameters

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

Return Value

Double
The next smaller 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 decrementation step length depends on the provided value. Decrement(double.MinValue) will return negative infinity.
See Also