SQRT


sqrt( a )
sqrt "square root"
a a number

The sqrt( a ) function is used to return the square root of the number provided.



For example, let's first square a number, then use sqrt() to reverse it:

--two ways to square a number
a = 4*4   --16
b = 4^2   --16

c = sqrt(b) --square root

print(c)  --4

342

12 May 2023

Font