Returns the square root of a number. Alias for the standard library function math.sqrt.


See also Lua library functions.

Signature:

root = sqrt(x)

Arguments:

  • x - A number (number)

Returns:

  • root - The square root of x (number)
This function is defined in the Lua standard libraries