cos(x: f64) → f64

Category: [math](builtinsmath)_

Cosine of an angle in radians.

ParameterTypeDescriptionRemarks
xf64The input value.
returnsf64The result.
wcl
cos(0.0)   // cosine of 0 radians → 1.0