sqrt

sqrt

> Functions

Calculates the square root of the number number.

Parameters
Return
Python

In Python, math.sqrt() is the native function of the math module: if number < 0, it raises a ValueError (math domain error) instead of returning NaN as LeekScript does.

Examples

sqrt(1) // 1 sqrt(2) // 1.41421356237 sqrt(4) // 2 sqrt(31329) // 177

See as well