absdbl, absflt, absint, abssml
Declaration
double function absdbl(double X)
float function absflt(float X)
integer function absint(integer X)
smallint function abssml(smallint X)
Description
absdbl, absflt, absint, absdbl return the absolute value of X..
Example Stored Procedure
CREATE PROCEDURE test_dabs (X DOUBLE PRECISION)
RETURNS (result DOUBLE PRECISION) AS
BEGIN
result = dabs(X);
END!!
WISQL - calling the example stored procedure
execute procedure test_dabs(-1.2)
RESULT
======================
1.2
execute procedure test_dabs(1.2)
RESULT
======================
1.2
execute procedure test_dabs(-3.2e12)
RESULT
======================
3200000000000
execute procedure test_dabs(-3.2e-12)
RESULT
======================
3.200000000000001e-12