Rounds the input elements to the nearest integer value.
c = round(a)
Numeric scalar or numeric array of any dimension.
Elements of a rounded to the nearest integer value. c is an array of the same size as a.
If the fractional component of an element in a is 0.5, MathScript rounds up.
If a is complex, MathScript computes the nearest integer values with the following equation: c = round(real(a))+round(imag(a))*i.
A = [-3.7, -2.5, -1.5, -1.2, 1.3, 2.5, 3.7] C = round(A)
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported