COS

The IEC operator returns the cosine value for a number.

Permitted data types for the input variable, which specifies the angle in radians: any numeric basic data type

Permitted data types for output variables: REAL and LREAL

COS 1:

The allowed range for the input value is from -263 to +263.
On x86 and x64 systems, if the input value is out of range, the function returns the input value.

Samples:

ST:

fVar := COS(0.5);

FBD:

COS 2:

Result: fVar is 0.877583.