Sqr
The Sqr function calculates the square root of a number.
If you are not familiar with the square root, the square root is
a number that when multiplied by itself results in the orignal
number. So the square root of 4 would be 2 because 2 * 2 = 4.
If you try to take the square root of a negative number, the
function will throw a runtime error. The square root is commonly
used in calculating the dimensions of a triangle.
Response.Write "Sqr(1) = " & Sqr(1) & "<BR>" Response.Write "Sqr(2) = " & Sqr(2) & "<BR>" Response.Write "Sqr(4) = " & Sqr(4) & "<BR>" Response.Write "Sqr(9) = " & Sqr(9) & "<BR>" Response.Write "Sqr(16) = " & Sqr(16) & "<BR>"
|
 |

|