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:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page