Rounds the input to the nearest integer greater than or equal to itself.
Syntax |
Description |
---|---|
out = ceil(x); |
Returns the nearest integer greater than or equal to x. |
Example
Find the nearest integer greater than or equal to 1.41:
?ceil(1.41); result: 2
See Also
List of commands , floor , mod