Click or drag to resize

NMathFunctionsRound(FloatMatrix, Int32) Method

Creates a new matrix with the same dimensions as a given matrix, whose values are the result of rounding each element to the specified number of digits.

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

Parameters

A  FloatMatrix
A matrix.
digits  Int32
Number of digits.

Return Value

FloatMatrix
A new matrix.
Remarks
B[i,j] = (float) System.Math.Round(A[i,j], d)
See Also