Previous Topic: SIGN-VALUENext Topic: SOCKET


SINE

Purpose

Returns the sine of a numeric value that represents an angle in either degrees or radians.

Syntax

Sine (degrees):

►►─┬─ SINE-DEGREES ─┬─ ( value ) ─────────────────────────────────────────────►◄
   ├─ SINEDEG ──────┤
   └─ SIND ─────────┘

Sine (radians):

►►─┬─ SINE-RADIANS ─┬─ ( value ) ─────────────────────────────────────────────►◄
   ├─ SINERAD ──────┤
   └─ SINR ─────────┘

Parameters

SINE-DEGREES

Returns the sine value in degrees.

SINE-RADIANS

Returns the sine value in radians.

value

Specifies the numeric value representing the angle, in degrees or radians, whose sine is calculated.

Value can be:

Example

In the following example, the sine (degrees) of -60 is calculated and moved to WK-RESULT (PIC S999V9999):

MOVE SIND(-60) TO WK-RESULT.
Return value: -0.8660