ceil

Navigation:  Language Reference > Functions > Arithmetic >

ceil

Previous pageReturn to chapter overviewNext page

Syntax

Y = ceil(X);

Description

Rounds X or the elements of X to the nearest integers greater than or equal to X.

Examples

 

X

ceil(X)

1

1

2.1

3

-2.6

-2

3.4

4

[1.1,-2.7;3.5,-4.1]

[2,-2;4,-4]

 

Limitations

X and Y must have the same size.