Cos(Value: Double): Double;
Value. Angle in radians, which cosine must be found.
The Cos method returns a cosine for the specified angle.
Value of the Value parameter must be set as an end number.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Cos(1.047);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the cosine of the specified angle equal to 0.50017107459707.
See also: