Rounds to the next upper integer. |
||
Syntax |
i = Ceil(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector, or matrix. |
|
Output |
Name |
Description |
i |
Each element rounded to the next upper integer. For negative values, it rounds towards zero. |
|
Example |
Round to the next upper integer of elements in a vector: |
|
Syntax |
||
i = Ceil([-1.9,2.1,2.8,4]) |
||
Result |
||
i = -1 3 3 4 |
||
See Also: |