cos

cos(): Real;

The cos method of the Real primitive type returns the cosine of the receiver. The receiver value represents an angle in degrees, and the resulting value is always in the range -1 through 1.

The following example shows the use of the cos method.

testReal();
vars
    realValue : Real;
begin
    realValue := 34;                    // Defines the variable value
    write realValue.cos;                // Outputs 0.829037572555042
end;