Home  |  Delphi .net Home  |  System.Math  |  Cos Method
  
Cos  
Method  
Gets the Cosine of an angle
Math Class
System NameSpace
CF1.  Function Cos ( Angle : Double ) : Double; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Returns the CoSine (Cos) value of the Angle radians value.
 
PI Radians = 180 degrees
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.Math
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  float : Double;
begin
  float := System.Math.Cos(PI/3);   // = 180/3 = 60 degrees

  Console.WriteLine('Cos(PI/3) = {0}', float.ToString);

  Console.ReadLine;
end.
   Cos(PI/3) = 0.5
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author