ceiling
Declaration
double function ceiling(double X)
Description
Ceiling returns the next highest whole number of double X.. For InterBase
ceiling (2.1) would return 3.0.
Example Stored Procedure
CREATE PROCEDURE test_ceiling (X DOUBLE PRECISION)
RETURNS (result DOUBLE PRECISION) AS
BEGIN
result = ceiling(X);
END!!
WISQL - calling the example stored procedure
execute procedure test_ceiling(1.23);
RESULT
======================
2
execute procedure test_ceiling(-1.23);
RESULT
======================
-1
execute procedure test_ceiling(-11.23);
RESULT
======================
-11
execute procedure test_ceiling(11.23);
RESULT
======================
12
execute procedure test_ceiling(0);
RESULT
======================
0