cbrt

description

Syntax

DOUBLE cbrt(DOUBLE x) Returns the cube root of x.

example

  1. mysql> select cbrt(8);
  2. +-----------+
  3. | cbrt(8.0) |
  4. +-----------+
  5. | 2 |
  6. +-----------+
  7. mysql> select cbrt(2.0);
  8. +--------------------+
  9. | cbrt(2.0) |
  10. +--------------------+
  11. | 1.2599210498948734 |
  12. +--------------------+
  13. mysql> select cbrt(-1000.0);
  14. +---------------+
  15. | cbrt(-1000.0) |
  16. +---------------+
  17. | -10 |
  18. +---------------+

keywords

  1. CBRT