pow
Description
Syntax:
DOUBLE pow(DOUBLE a, DOUBLE b)
This function returns a
to the power of b
.
Example
mysql> select pow(2,0);
+---------------+
| pow(2.0, 0.0) |
+---------------+
| 1 |
+---------------+
mysql> select pow(2,3);
+---------------+
| pow(2.0, 3.0) |
+---------------+
| 8 |
+---------------+
mysql> select pow(3,2.4);
+--------------------+
| pow(3.0, 2.4) |
+--------------------+
| 13.966610165238235 |
+--------------------+
Keywords
POW