VBScript Sqr Function
Complete VBScript Reference Manual
The Sqr function returns the square root of a number.
**Note:** The number parameter cannot be negative.
Syntax
Sqr(number)
| Parameters | Description |
|---|---|
| number | Required. A valid numeric expression greater than 0. |
Example
Example
The example above produces the following output:
3
0
6.85565460040104
Try it »
Complete VBScript Reference Manual