The SQUARE ROOT function returns the square root of a number value you specify.
This function is one of Author's Mathematical Functions and Operators, which are useful for performing various calculations.
Function name | SQUARE ROOT |
Usage model | SQUARE ROOT ( n:NUM ) |
Parameters | This function requires you to replace only one parameter: |
n: NUM |
The function calculates the square root of this value. |
Result | A number value. |
The following example would return the value 9.
SQUARE ROOT (81)
The following example would set the text variable textTE to "1.732051".
SET textTE TO FORMAT ( SQUARE ROOT ( 3 ), "9.999999")
After you download the example template, you can import the template to any workspace to see this example code in action.