FANDOM


sqrt( num )

Calculates the square root of a number.

num
The number. Must be positive.

The sqrt() function calculates the square root of a positive number.

When given a negative number, sqrt() returns a result, but it isn't useful.

Examples Edit

print(sqrt(9))     -- 3

print(sqrt(0.25))  -- 0.5

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.