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.

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