Atan2 in Go

Posted by GoDoc
Public (Editable by Users)

Atan2 returns the arc tangent of y/x, using the signs of the two to determine the quadrant of the return value.

Go
Edit
package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Printf("%.2f", math.Atan2(0, 0))
}