angle | The REAL radian value for which to find the cosine. |
Return: | COS returns a single REAL value. |
The COS function returns the cosine of the angle.
Example:
Deg2Rad := 0.0174532925199; //number of radians in a degree
Angle45 := 45 * Deg2Rad; //translate 45 degrees into radians
Cosine45 := COS(Angle45); //get cosine of the 45 degree angle
OUTPUT(Cosine45);