mindbl, minflt, minint, minsml
Declaration
double function mindbl(double X, double Y)
float function minflt(float X, float Y)
integer function minint(integer X, integer Y)
smallint function minsml(smallint X, smallint Y)
Description
mindbl, minflt, minint, minsml return the lower of X and Y.
Example Stored Procedure
CREATE PROCEDURE test_mindbl (X DOUBLE PRECISION, Y DOUBLE PRECISION)
RETURNS (result DOUBLE PRECISION) AS
BEGIN
result = mindbl(X,Y);
END!!
WISQL - calling the example stored procedure
execute procedure test_mindbl(11.2, 33.33)
RESULT
======================
11.2
execute procedure test_mindbl(11.2, -33.33)
RESULT
======================
-33.33
execute procedure test_mindbl(-11.2, -33.33)
RESULT
======================
-33.33
execute procedure test_mindbl(-11.2, 33.33)
RESULT
======================
-11.2