squareRoot
Description
Get the square root of a number.
Input / Parameter
Name
Description
Input Type
Default
Options
Required
value
The number to return the square root of.
Number
-
-
Yes
Output
Description
Output Type
Returns the square root value.
Number
Example
In this example, we will get the squareroot of a value and print the result in the console.
Steps
Drag a
buttoncomponent into the canvas and open theActiontab. Select thepressevent of the button and drag theLog.writefunction to the event flow.Call the function
Math.squareRootinside theLog.writefunction.Enter the value to get the squareroot of.

Result
The console will print the value
2.
Last updated