CBRT

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns the cube root of a number.

Syntax 

1cbrt(<dp>)

Arguments 

Required 

  • <dp>: The double precision value to evaluate.

Returns 

Returns the cube root as a double precision value.

Considerations 

  • Unlike sqrt, cbrt accepts negative arguments. The cube root of a negative number is negative.

Examples 

Get a Cube Root 

Compute the cube root of a value.

1SELECT cbrt(27.0) AS result;

Returns 3.0.

Cube Root of a Negative Number 

1SELECT cbrt(-1000) AS result;

Returns -10.

Related Documentation