Sqr

Value = Sqr ( Number )

Compute the square root of a number. The number must be greater than or equal to zero.

Errors

Message Description
Mathematical error (19) Number is negative.

Examples

Print Sqr(2)
1.414213562373

Dim I As Integer
For I = 1 To 5
  Print i, Sqr(i)
Next

1     1
2     1.414213562373
3     1.732050807569
4     2
5     2.2360679775

See also