Type Function Library math.* Return value Number Revision 2017.3060 Keywords sqrt, square root
Returns the square root of x (equivalent to the expression x^0.5).
x
x^0.5
math.sqrt( x )
Number. A number.
print (math.sqrt (100)) ---> 10 print (math.sqrt (-1)) ---> NaN