The COS function calculates the cosine of any angle using floating point arithmetic, then rounds to the precision implied by the jBC program. This makes it very accurate.
This function calculates the cosine of an expression.
The expression must evaluate to a numeric result or a runtime error will occur.
The value returned by expression is assumed to be in degrees.
FOR I = 1 TO 360