Docs Functions math math.Cosmath.CosReturns the cosine of the given radian number.Syntaxmath.Cos VALUEReturnsfloat64{{ math.Cos 1 }} → 0.5403023058681398Last updated: April 4, 2026 : content: Remove outdated new-in badges (21081f6d4)Improve this page