(angle).cos cos (angle)
Function (Lingo only); calculates the cosine of the specified angle, which must be expressed in radians.
In JavaScript syntax, use the Math objects cos() function.
angle Required. An integer that specifies the angle to test.
The following statement calculates the cosine of PI divided by 2 and displays it in the Message window:
put (PI/2).cos