Use the Pow function:
// Maths operation: fValue is raised to the power of fExponent
// * Returns zero if fValue ==0 and fExponent <0
float pow(float fValue, float fExponent)
The Cube root of X is the same thing as X to the 1/3 Power. So to get the cube root of X you would use.
Pow ( x, 1.0/3.0);
Modifié par Lightfoot8, 26 juillet 2012 - 04:42 .