Benargee
Alternatively use "x^0.5" or "x^(1/2)".
_sq = 9^0.5; // result is 3
_sq = 9^(1/2); // result is 3
You can use this method to get any root. Cubed root = x^(1/3) or x^0.333[repeating]. Root 4 = x^(1/4) or x^0.25.
Results appear below as you type; use the arrow keys to move through them.
Returns square root of x.
sqrt x
Parameters:
x: NumberReturns: Number
private _squareRoot = sqrt 9; // returns 3
Alternatively use "x^0.5" or "x^(1/2)".
_sq = 9^0.5; // result is 3
_sq = 9^(1/2); // result is 3
You can use this method to get any root. Cubed root = x^(1/3) or x^0.333[repeating]. Root 4 = x^(1/4) or x^0.25.