Function Block ACOS

The Function Block ACOS calculates the arccosine.

Note: The Function Block uses radians. See Function Block DEG2RAD and RAD2DEG.

Input

An integer value is expected at the input. The value of a string is attempted to be converted into an integer. The boolean value TRUE is converted to a 1.

Note: Also see the article String Conversion To Numbers, if you are working with strings.

Output

The output returns the arccosine as an integer. In case of error, the value NAN (Not a Number) is returned.