Radians(Angle: Double): Double;
Radians(Angle: double): double;
Angle. Value of angel in degrees.
The Radians method returns the value transformed from degrees to radians.
Parameter value cannot be empty.
To transform radians to degrees, use the IMath.Degrees method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Radians(270);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the transformation result equal to 4.71238898038469.
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.Radians(270);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: