VBScript Sqr Function
Definition and Usage
The Sqr function can return the square root of a number.
Note:The number parameter cannot be negative.
Syntax
Sqr(number)
Parameter | Description |
---|---|
number | Required. A valid numeric expression that is greater than or equal to 0. |
Instance
Example 1
document.write(Sqr(9))
Output:
3
Example 2
document.write(Sqr(0))
Output:
0
Example 3
document.write(Sqr(47))
Output:
6.85565460040104