Name

ceiling — Round a number to positive infinity.

Synopsis

ceiling ( in x double precision );

Description

ceiling calculates the smallest integer greater than or equal to x .

Parameters

x

double precision

Return Values

ceiling returns a 32-bit integer .

Examples

Example24.30.Simple Examples

SQL> select ceiling (12.3456), ceiling (-12.3456), ceiling (0.513513);
callret   callret   callret
INTEGER   INTEGER   INTEGER
_______________________________________________________________________________

13        -12       1

1 Rows. -- 4 msec.


See Also

floor