Sqrt(Value: Double): Double;
Sqrt(Value: double): double;
Value. Real number.
The Sqrt method returns the square root of the specified value.
Value of the Value parameter must not be negative.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Sqrt(16);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the square root equal to 4.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.MathFin;
…
Public Shared Sub Main(Params: StartParams);
Var
r: Double;
Math: MathClass = New MathClass();
Begin
r := Math.Sqrt(16);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: