Syntax
Parameters
Return Type
DOUBLE PRECISION
Remarks
CBRT(NULL)returnsNULL.CBRT('NaN')returnsNaN.CBRT('Infinity')returnsInfinityandCBRT('-Infinity')returns-Infinity.- Unlike
SQRT,CBRTaccepts negative inputs and returns a negative result. - The result is correctly rounded: the
DOUBLE PRECISIONvalue closest to the exact cube root, the same on every platform. The cube root of an exact cube is exact.
Example
The following example returns the cube root of 27:Rows: 1Execution time: 2.05ms
CBRT accepts negative values:
Rows: 1Execution time: 2.33ms