IMath.Radians

Fore Syntax

Radians(Angle: Double): Double;

Fore.NET Syntax

Radians(Angle: double): double;

Parameters

Angle. Value of angel in degrees.

Description

The Radians method returns the value transformed from degrees to radians.

Comments

Parameter value cannot be empty.

To transform radians to degrees, use the IMath.Degrees method.

Fore Example

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.

Fore.NET Example

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:

IMath