ID : 244
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
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 : 244