tan

tan(): Real;

The tan method of the Real primitive type returns the tangent 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 tan method.

vars
    realValue : Real;
begin
    realValue := 340.5;                 // Defines the variable value
    write realValue.tan;                // Outputs -0.354118572530698
end;