Navigation: Language Reference > Functions > Arithmetic >
Y = round(X);
Rounds X or the elements of X to the nearest integer.
X
round(X)
1
2.1
2
-2.6
-3
3.7
4
[1.1,-2.7;3.5,-4.1]
[1,-3;4,-4]
X and Y must have the same size.