Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 288
نمايش فراداده

Availability

JavaScript 1.0; JScript 1.0; ECMAScript v1

Synopsis

Math.cos(x)

Arguments

x

An angle, measured in radians. To convert degrees to radians, multiply the degree value by 0.017453293 (2/360).

Returns

The cosine of the specified value x. This return value is between -1.0 and 1.0.