| NMathFunctionsRound(FloatVector, 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 FloatVector Round(
FloatVector v,
int digits
)
Public Shared Function Round (
v As FloatVector,
digits As Integer
) As FloatVector
public:
static FloatVector^ Round(
FloatVector^ v,
int digits
)
static member Round :
v : FloatVector *
digits : int -> FloatVector
Parameters
- v FloatVector
- A vector.
- digits Int32
- Rounding digits.
Return Value
FloatVector
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] = (float) System.Math.Round(v[i], d)
See Also