Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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>"

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"All programmers are playwrights and all computers are lousy actors." - Anon

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.