Sqr (function)

Syntax Sqr (number)
Description Returns a Double representing the square root of number.
Comments The number parameter is a Double greater than or equal to 0.
Example This example calculates the square root of the numbers from 1 to 10 and displays them.
Const crlf = Chr$(13) + Chr$(10)
                           
Sub Main()
  msg1 = ""
  For x = 1 To 10
    sx# = Sqr(x)
    msg1 = msg1 & "The square root of " & x & " is " &_
           Format(sx#,"Fixed") & crlf
  Next x
  MsgBox msg1
End Sub