Degrees(Angle: Double): Double;
Degrees(Angle: double): double;
Angle. Angle in radians that must be transformed into degrees.
The Degrees method returns the value, converted from radians to degrees.
The Angle parameter cannot be empty.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Degrees(3.14);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the radian into degree transformation result equal to 179.908747671079.
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.Degrees(3.14);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: