maxdbl, maxflt, maxint, maxsml
Declaration
double function maxdbl(double X, double Y))
float function maxflt(float X, float Y))
integer function maxint(integer X, integer Y))
smallint function maxsml(smallint X, smallint Y))
Description
maxdbl, maxflt, maxint, maxsml return the higher of X and Y.
Example Stored Procedure
CREATE PROCEDURE test_maxdbl (X DOUBLE PRECISION, Y DOUBLE PRECISION)
RETURNS (result DOUBLE PRECISION) AS
BEGIN
result = maxdbl(X,Y);
END!!
WISQL - calling the example stored procedure
execute procedure test_maxdbl(11.2, 33.33)
RESULT
======================
33.33
execute procedure test_maxdbl(11.2, -33.33)
RESULT
======================
11.2
execute procedure test_maxdbl(-11.2, -33.33)
RESULT
======================
-11.2
execute procedure test_maxdbl(-11.2, 33.33)
RESULT
======================
33.33