Ceil
Ceil[ expr ]
Ceil[ expr ] returns the smallest integer greater than or equal to the value of expr.
| Example | in | out |
|---|---|---|
The ceiling of 3.1. |
Ceil[3.1] |
4 |
The ceiling of x, where x is defined as -3.5 in the script. |
Ceil[x] |
-3 |
The ceiling of sqrt[5]+0.3. |
Ceil[sqrt[5]+0.3] |
3 |