-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
by lukeusmaximus39:
Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against http://golang.org/doc/devel/release.html If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What does 'go version' print? go version go1.3.3 linux/amd64 What steps reproduce the problem? Compute the function math.Hypot(0.08879849107482636, -0.07597714093596328) If possible, include a link to a program on play.golang.org. http://play.golang.org/p/4jsrWchSln What happened? The value 0.11686615404799307 was returned What should have happened instead? It should have returned the correct value of 0.11686615404799305 Please provide any additional information below. Java and Python both give the result 0.11686615404799305 I would suggest that this is a problem with square root accuracy/precision.