Math.cbrt

Math.cbrt

Math.cbrt

Function

Cube root. Returns the cube root of value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberYesNoneThe number involved in the calculation.

Return value

TypeDescription
Int/FloatReturns the cube root of value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Integer results return Int.