Standard library / math

math.SqrtPi

Square root of pi. Expected stdout: '1.772454\n'.

Formal Syntax & Structure

go syntaxgo
const SqrtPi  = 1.77245385090551602729816748334114518279754945612238712821380779

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Printf("%.6f\n", math.SqrtPi)}
Go Reference