Tuesday, August 31, 2010

Visual Basic Math Function : Sqr

Purpose : The Sqr function returns the square root of a number.

Syntax :
Sqr ( dblExpression )

dblExpression : Numeric expression of which you want to return the square root

Dim dblResult as Double
dblResult = Sqr ( 72 )

This example places the square root of 72 into the variable into the variable dblResult. giving it a value of 8.485281

No comments:

Post a Comment