Comment on page
sqrt
To calculate the square root
Use the function to find the square root of a positive number.
If the number has a negative sign, use the function
abs()
for example to convert it to a positive number first.sqrt(number)
number
sqrt(x)
To calculate the square root of a number x.1
sqrt(3)
Result: 1.7320508075688772
1
sqrt(9)
Result: 3
1
sqrt(-9)
Result: (invalid)
1
sqrt(abs(9 - 13))
Result: 2
Last modified 1yr ago