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