Skip to main content
Version: 8.1

cos

This function is used by Ignition's Expression language.

Description​

Returns the trigonometric cosine of number, which is interpreted as an angle expressed in radians. The results will be a floating point value.

Syntax​

cos(number)

  • Parameters

    • Integer/Float number - The number to get the cosine of.
  • Results

    • Float - The cosine of the number provided.

Examples​

Code Snippet
cos(1.89) //returns -0.31381