.cos

Description

Cos is a method that returns the cosine of its input value.

Parameters

Cos takes no parameters

Usage On Numbers

num = 90.cos()
// the input value is in degrees
// this does the cosine of 90 degrees, not the cosine of 90 radians

log num
// returns 0

Last updated

Was this helpful?