cos()

The cos() function calculates the cosine of an angle.

Syntax

cos(expr)
Note:
  1. Calculates the cosine of number(expr).
  2. number(expr) is the angle in degrees.