Skip to main content
Returns the cube root of a numeric value.

Syntax

Parameters

Return Type

DOUBLE PRECISION

Remarks

  • CBRT(NULL) returns NULL.
  • CBRT('NaN') returns NaN.
  • CBRT('Infinity') returns Infinity and CBRT('-Infinity') returns -Infinity.
  • Unlike SQRT, CBRT accepts negative inputs and returns a negative result.
  • The result is correctly rounded: the DOUBLE PRECISION value 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

The following example shows that CBRT accepts negative values:

Rows: 1Execution time: 2.33ms