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, 1472🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Managing Security, Login and User in SQL Serv...
What Happens to an Arithmetic Operation with Two Different Data Types in SQL Server Transact-SQL? Wh...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
Is PL/SQL Language Case Sensitive in Oracle? PL/SQL language is not case sensitive: Reserved words a...
What are binary literals supported in SQL Server Transact-SQL? Binary literals in Transact-SQL are s...