PLSQL | POWER Function Last Updated : 18 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The POWER function is an inbuilt function in PLSQL which is used to return the calculated value when a raised to the bth power. If a is negative number, then b must be an integer. Syntax: POWER(a, b) Parameters Used: This function accepts two parameters a and b. If a is negative number, then b must be an integer. Return Value: This function return a raised to the bth power. Supported Versions of Oracle/PLSQL is given below: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Let's see some examples which illustrate the POWER function: Example-1: DECLARE Test_Number number1 := 3; Test_Number number2 := 2; BEGIN dbms_output.put_line(POWER(Test_Number number1, Test_Number number2)); END; Output: 9 In the above example, 3 is raised to the 2nd power and returns 9 as the output. Example-2: DECLARE Test_Number number1 := -5; Test_Number number2 := 3; BEGIN dbms_output.put_line(POWER(Test_Number number1, Test_Number number2)); END; Output: -125 In the above example, -5 is raised to the 3th power and returns -125 as the output. Example-3: DECLARE Test_Number number1 := 6.2; Test_Number number2 := 3.5; BEGIN dbms_output.put_line(POWER(Test_Number number1, Test_Number number2)); END; Output: 593.431934277892 In the above example, 6.2 is raised to the 3.5th power and returns 593.431934277892 as the output. Advantage: This function is used to find the value when a raised to the bth power is calculated. Comment More infoAdvertise with us Next Article PLSQL | POWER Function K Kanchan_Ray Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads POWER() Function in MySQL POWER() function in MySQL is used to find the value of a number raised to the power of another number. It Returns the value of X raised to the power of Y. Syntax : POWER(X, Y) Parameter : This method accepts two parameter which are described below : X : It specifies the base number. Y : It specifies 3 min read PLSQL | SQRT Function In PL/SQL, the SQRT function is used to find the square root of a number. This function is really handy for various tasks that involve mathematical calculations, such as analyzing statistics, solving geometry problems, or handling financial data. The SQRT function is easy to use and can simplify com 4 min read PLSQL | TAN Function The TAN function is an inbuilt function in PLSQL which is used to return the tangent of an input number. The tangent is a trigonometric function of an angle and here the input number is the angle expressed in the form of radians. 180 degree is equal to pi radian. Syntax: TAN( number ) Parameters Use 1 min read PLSQL | SIN Function The PLSQL SIN function is used to return the sine of a numeric value. The SIN function accepts one parameter which is the number whose sine needs to be calculated. The SIN function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any non-n 2 min read PL/SQL Functions PL/SQL functions are reusable blocks of code that can be used to perform specific tasks. They are similar to procedures but must always return a value. A function in PL/SQL contains:Function Header: The function header includes the function name and an optional parameter list. It is the first part o 4 min read Like