Skip to main content

CBRT

Description

Calculate the cube root of the parameter

Syntax

CBRT(<a>)

Parameters

ParameterDescription
<a>Floating point parameter

Return Value

Cubic root of parameter <a>, a floating point number.

Examples

select cbrt(0);
+-------------------------+
| cbrt(cast(0 as DOUBLE)) |
+-------------------------+
| 0.0 |
+-------------------------+
select cbrt(-111);
+----------------------------+
| cbrt(cast(-111 as DOUBLE)) |
+----------------------------+
| -4.805895533705333 |
+----------------------------+
select cbrt(1234);
+----------------------------+
| cbrt(cast(1234 as DOUBLE)) |
+----------------------------+
| 10.726014668827325 |
+----------------------------+