August 2001
Intermediate to advanced
656 pages
18h 5m
English
Sqrt Function
System.Math
Sqr(d)d
Use: Required
Data Type: Double
Any numeric expression greater than or equal to 0
A Double containing the square root of d
Calculates the square root of a given number
d must be equal to or greater than zero,
or runtime error 5, “Invalid procedure call or argument,”
occurs.
This is a Shared member, so it can be used without creating any objects.
The square root function in VB 6 is named Sqr,
and it is an intrinsic VB function. In the .NET Framework, it is
named Sqrt, and it is a member of the Math class
in the System namespace.
Read now
Unlock full access