Click or drag to resize

NMathFunctionsRound(DoubleVector, Int32) Method

Creates a new vector with the same size as a given vector, whose values are the result of rounding each element of the given vector to the specified number of decimal places.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleVector Round(
	DoubleVector v,
	int digits
)

Parameters

v  DoubleVector
A vector.
digits  Int32
Rounding digits.

Return Value

DoubleVector
A new vector with the same size as v, whose values are the result of rounding each element of v to the specified number of digits.
Remarks
u[i] = System.Math.Round(v[i], d)
See Also