Standard library / math

math.SqrtPhi

Square root of golden ratio. Expected stdout: '1.272020\n'.

Formal Syntax & Structure

go syntaxgo
const SqrtPhi = 1.27201964951406896425242246173749149171560804184009624861664038

Working Example

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