double cos(
num x
)

Converts x to a double and returns the cosine of the value.

If x is not a finite number, the result is NaN.

Source

/**
 * Converts [x] to a double and returns the cosine of the value.
 *
 * If [x] is not a finite number, the result is NaN.
 */
external double cos(num x);