Applies to: Math Object
The cos method is use to get the cosine of a number.
Syntax
Math.cos(number)
The number argument is a numeric expression for which the cosine is sought.
Return
Returns the cosine of a number
Example
The return value is the cosine of its numeric argument.
See also: acos Method, asin Method, atan Method, Math Object Methods, sin Method, tan Method |