Sqrt

Explanation
The sqrt function in Game Maker returns the square root of a value. The input can be any positive real number or 0. The square root of negative numbers is not defined and trying to compute it will result in an error. You can use the abs function though to compromise this.

See Square root for more info

Examples
Here are some example results:

sqrt(4) will return the value 2 sqrt(9) will return the value 3 sqrt(12.5) will return the value 3.5355339060 sqrt(0) will return the value 0 sqrt(-2) will result in an error