math.sqrt()

Type Function
Library math.*
Return value Number
Revision Current Public Release (2017.3068)
Keywords sqrt, square root

Overview

Returns the square root of x (equivalent to the expression x^0.5).

Syntax

math.sqrt( x )
x (required)

Number. A number.

Examples

print (math.sqrt (100))    ---> 10
print (math.sqrt (-1))     ---> NaN