math.cbrt() function

The math.cbrt() function returns the cube root of x.

*Output data type: Float*

  1. import "math"
  2. math.cbrt(x: 1728.0)
  3. // Returns 12.0

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.cbrt0) // Returns ±0
  2. math.cbrtInf) // Returns ±Inf
  3. math.cbrt(NaN) // Returns NaN