Function Block TAN

The Function Block TAN calculates the tangent.

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

Input

An input value is expected to be a number. The Function Block attempts to convert the value of a string into a number. 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 tangent as an integer. In case of error, the value NAN (Not a Number) is returned.