pow

Declaration

double function pow(double X, double Y)

Description

pow returns X to the power Y where X >= 0.0.

Example Stored Procedure

CREATE PROCEDURE test_pow (X DOUBLE PRECISION, Y INTEGER)

RETURNS (result DOUBLE PRECISION) AS

BEGIN

result = pow(X, Y);

END!!

WISQL - calling the example stored procedure

execute procedure test_pow( 2 , 2.1)

RESULT

======================

4.287093850145173

execute procedure test_pow( 2 , -2.1)

RESULT

======================

0.2332582478842019

Error Results - restrictions on X are : X >= 0.0

execute procedure test_pow( -2 , -2.1)

RESULT

======================

-999999