cos

The Math.cos() method returns the cosine of a number.

Syntax

cos(x)

Returns

-1 to 1 The cosine of the number. NaN if the parameter is not numeric.

Parameters

x (float)
A number representing radians.