IMath.Degrees

Fore Syntax

Degrees(Angle: Double): Double;

Fore.NET Syntax

Degrees(Angle: double): double;

Parameters

Angle. Angle in radians that must be transformed into degrees.

Description

The Degrees method returns the value, converted from radians to degrees.

Comments

The Angle parameter cannot be empty.

Fore Example

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.

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.Degrees(3.14);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath