Collections:
POW() - X Raised to Power of Y
How to calculate the exponential of a number on a given base using the POW() function?
✍: FYIcenter.com
POW(X, Y) is a MySQL built-in function that
calculates the exponential of a number on a given base.
For example:
SELECT POW(2, 0.5), POW(2, 3), POW(2.718, -1.0); -- +--------------------+-----------+---------------------+ -- | POW(2, 0.5) | POW(2, 3) | POW(2.718, -1.0) | -- +--------------------+-----------+---------------------+ -- | 1.4142135623730951 | 8 | 0.36791758646063283 | -- +--------------------+-----------+---------------------+
Reference information of the POW() function:
POW(X, Y): val Returns the value of X raised to the power of Y. Arguments, return value and availability: X: Required. The base value. Y: Required. The power value. val: Return value. The X raised to Y. Available since MySQL 4.0.
Related MySQL functions:
2023-11-14, 1112🔥, 0💬
Popular Posts:
How To Convert a Unicode Strings to Non-Unicode Strings in SQL Server Transact-SQL? Since Unicode ch...
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How To Get the Definition of a Stored Procedure Back in SQL Server Transact-SQL? If you want get the...
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...