Click or drag to resize

ScriptExecutionBaseRound(Double, Int32) Method

Rounds a double-precision floating-point value to a specified number of fractional digits, and rounds midpoint values to the nearest even number.

Namespace: Altaxo.Calc
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double Round(
	double x,
	int i
)

Parameters

x  Double

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.ScriptExecutionBase.Round(System.Double,System.Int32)"]

i  Int32

[Missing <param name="i"/> documentation for "M:Altaxo.Calc.ScriptExecutionBase.Round(System.Double,System.Int32)"]

Return Value

Double
The number nearest to value that contains a number of fractional digits equal to digits.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiondigits is less than 0 or greater than 15.
See Also