Cos returns the cosine of the radian argument x.
package main import ( "fmt" "math" ) func main() { fmt.Printf("%.2f", math.Cos(math.Pi/2)) }