Returns a positive square root.
The Sqrt function syntax has the following arguments:
Number Required. The number for which you want the square root.
If number is negative, Sqrt returns the NaN (Not a Number) error value.
Square root of 16.
Square root of -16. Because the number is negative, the NaN error message is returned.
Avoiding the NaN error message by first using the Abs function to find the absolute value of -16 and then finding the square root.
Updated 12 months ago