Atan2 returns the arc tangent of y/x, using the signs of the two to determine the quadrant of the return value.
package main import ( "fmt" "math" ) func main() { fmt.Printf("%.2f", math.Atan2(0, 0)) }