
The Function Block COS calculates the cosine.
Note: The Function Block uses radians. See Function Block DEG2RAD and RAD2DEG.
An input value is expected to be a number. The value of a string is attempted to be converted into a number. The boolean value TRUE is converted into a 1.
Note: Also see the article String Conversion to Numbers, if you are working with strings.
The output returns the cosine as an integer. In case of an error, the value NAN (Not a Number) is returned.