math.Cos
Returns the cosine of the given radian number.
Syntax
math.Cos VALUE
Returns
float64
{{ math.Cos 1 }} → 0.5403023058681398Last updated:
May 21, 2026
:
Merge commit 'c23d97904fd31ef745bece57133aa1b9275ec20c' (a7081fd10)
Improve this pageHugo Documentation

Syntax
Returns
{{ math.Cos 1 }} → 0.5403023058681398