Skip to content

cos

double cos(num radians)

Converts radians to a double and returns the cosine of the value.

If radians is not a finite number, the result is NaN.