math.Cos
Returns the cosine of the given radian number.
- Syntax
- math.Cos VALUE
- Returns
- float64
Usage
The math.Cos function returns the cosine of the given radian number.
Examples
{{ math.Cos 1 }} → 0.5403023058681398
{{ math.Cos math.Pi }} → -1Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page