.cos

Description

Cos is a bracketless method, that returns the cosine of its input value. It may conflict with object keys.

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