Docs Functions math math.Pimath.PiReturns the mathematical constant pi.Syntaxmath.PiReturnsfloat64{{ math.Pi }} → 3.141592653589793Last updated: April 4, 2026 : content: Remove outdated new-in badges (21081f6d4)Improve this page