| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector Round(
DoubleVector v,
int digits
)
Public Shared Function Round (
v As DoubleVector,
digits As Integer
) As DoubleVector
public:
static DoubleVector^ Round(
DoubleVector^ v,
int digits
)
static member Round :
v : DoubleVector *
digits : int -> DoubleVector
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