---
title: math.Pi
description: Returns the mathematical constant pi.
categories: []
keywords: []
action:
  aliases: []
  related:
    - functions/math/Sin
    - functions/math/Cos
    - functions/math/Tan
    - functions/math/Asin
    - functions/math/Acos
    - functions/math/Atan
    - functions/math/Atan2
  returnType: float64
  signatures: [math.Pi]
---

{{< new-in 0.130.0 />}}

```go-html-template
{{ math.Pi }} → 3.141592653589793
```
