ceil
Rounds to the nearest integer in the direction of +∞.
Syntax
-
ceil(x)
-
x
is a real number
-
Description
If x
is a real number, then ceil(x)
is the nearest integer that is greater than x
.
Notes
The circumfix operator ⌈⌉
is mapped to the ceil
function.
Examples
⌈π⌉
4
⌈e⌉
3
⌈−π⌉
−3
⌈−e⌉
−2