Returns the smallest integer greater than or equal to x
.
Syntax
ceiling(x)
Parameters
x
can be any of the following data types:
long, money, or double.
Examples
ceiling(1.4)
= 2ceiling(1.6)
= 2ceiling(-1.4)
= -1ceiling(-1.6)
= -1
Returns the smallest integer greater than or equal to x
.
ceiling(x)
x
can be any of the following data types:
long, money, or double.
ceiling(1.4)
= 2ceiling(1.6)
= 2ceiling(-1.4)
= -1ceiling(-1.6)
= -1