VBScript Sqr function
Sqr function returns the square root of a number.
Note: number parameter can not be negative.
grammar
Sqr(number)
参数 | 描述 |
---|---|
number | 必需。大于 0 的有效的数值表达式。 |
Examples
Examples
<script type="text/vbscript">
document.write(Sqr(9) & "<br />")
document.write(Sqr(0) & "<br />")
document.write(Sqr(47))
</script>
document.write(Sqr(9) & "<br />")
document.write(Sqr(0) & "<br />")
document.write(Sqr(47))
</script>
Examples of the above output:
3
0
6.85565460040104
0
6.85565460040104
try it"
Complete VBScript Reference