<< Prev        Next >>

ID : 3822

Sqr

Function

To return the square root.

Syntax

Sqr(formula)

Guaranteed Entry

Formula
Specify a positive value.

Return Value

Return the square root by numeric type data.

Description

Square root for formula value is returned.

Value of formula must be higher than 0.

Related Terms

Pow

Attention

-

Example

'!TITLE "Calculation of Square Root"
' Calculate square root of 4
Sub Sample_Sqr

  Dim aaa As Integer

  ' Assign square root of 4 to aaa
  aaa = Sqr( 4 )

  ' Display "2" on the message output window
  PrintDbg aaa

End Sub

ID : 3822

<< Prev        Next >>