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