Applies from Version: | WEBcnx 2024.1 | Applies to Version: |
Description
Returns a positive square root.
Syntax
SQRT(number)
The SQRT function has the following arguments:
- number Required. The number for which you want the square root.
Returns
A number
Examples
Expression | Description | Result |
---|---|---|
SQRT(16) | Square root of 16. | 4 |
SQRT(-16) | Square root of -16. Because the number is negative, an error is returned. | Error |
SQRT(ABS(-16)) | Avoiding the error by first using the ABS function to find the absolute value of -16 and then finding the square root. | 4 |