PLSQL | EXP Function Last Updated : 01 Nov, 2019 Comments Improve Suggest changes Like Article Like Report The EXP is an inbuilt function in PLSQL which is used to return a value which is e raised to the nth power. Here "e" is a mathematical constant whose value is 2.7182818 and n is the input number. Syntax: exp(number) Parameters Used: Here the parameter number is the input number which is raised to the power of "e". Return Value: This function returns a value which is e raised to the nth power. where n is the given input number. Supported Versions of Oracle/PLSQL: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Let's see some examples which illustrate the EXP function: Example-1: DECLARE Test_Number number := 3; BEGIN dbms_output.put_line(EXP(Test_Number number)); END; Output: 20.0855369231877 In the above example, 3 is taken as the parameter which is raised to e. And then it gives a result of 20.0855369231877 Example-2: DECLARE Test_Number number := 3.1; BEGIN dbms_output.put_line(EXP(Test_Number number)); END; Output: 22.1979512814416 In the above example, 3.1 is taken as the parameter which is raised to e. And then it gives a result of 22.1979512814416 Example-3: DECLARE Test_Number number := -3; BEGIN dbms_output.put_line(EXP(Test_Number number)); END; Output: 0.0497870683678639 In the above example, -3 is taken as the parameter which is raised to e. And then it gives a result of 0.0497870683678639 Advantage: This function is used to find out a value which is e raised to the nth power. Here "e" is a mathematical constant whose value is 2.7182818 and n is the input number. Comment More infoAdvertise with us Next Article PLSQL | EXP Function K Kanchan_Ray Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads PLSQL | CEIL Function The CEIL is an inbuilt function in PLSQL which is used to return the smallest integer value which is either greater than or equal to the given input number. This input number might be in the fraction or in the whole number. Syntax: CEIL(number) Parameters Used: Here the parameter number is the input 2 min read PLSQL | DUMP Function The PLSQL DUMP function is used to return a varchar2 value that contains the datatype code, the length in bytes, and the internal representation of the expression. The PLSQL DUMP function accepts an expression as a parameter, if the expression value is NULL, then the DUMP function returns NULL. Synt 2 min read PLSQL | EXTRACT Function The PLSQL EXTRACT function is used for extracting a specific value such as year, month, day or hour from a date or an interval value. Syntax: EXTRACT(field FROM source) Parameters Used: The EXTRACT function accepts two parameters : field - It is used to specify the component that needs to be extract 2 min read PLSQL | ABS Function The PLSQL ABS function is used for returning the absolute value of a number. Absolute value is used for depicting the distance of a number on the number line from 0. The direction of the number from zero is not considered since the absolute value of a number is never negative. The ABS in PLSQL funct 2 min read EXP() Function in MySQL EXP() function in MySQL is used to returns E raised to the power of a specified number. Here E(2.718281...) is the base of the natural logarithm. Syntax : EXP(X) Parameter : This method accepts one parameter as mentioned above in the syntax and described below : X â A specified number which will be 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 PLSQL | COSH Function The PLSQL COSH function is used to return the hyperbolic cosine of a numeric value. The COSH function accepts one parameter which is the number whose hyperbolic cosine needs to be calculated. The COSH function returns a value of the numeric data type. This function takes as an argument any numeric d 2 min read PLSQL | LN Function The LN function is an inbuilt function in PLSQL which is used to return the natural logarithm of a given input number. The natural logarithm of a number is the logarithm of that number to the base e, where e is the mathematical constant approximately equal to 2.718. This is written using the notatio 2 min read PLSQL | FLOOR Function The FLOOR is an inbuilt function in PLSQL which is used to return the largest integer value which will be either equal to or less than from a given input number. Syntax: FLOOR(number) Parameters Used: This function accepts a parameter number which is the input number on which FLOOR function is calle 2 min read PLSQL | LOG Function The PLSQL LOG function is used for returning the logarithm of n base m. The LOG function accepts two parameters which are used to calculate the logarithmic value. The LOG function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any non-nu 2 min read Like