Hello. Wikipedia says that sqrt(2) = 1.414213562373095048..., so I would round it to ...0950, while fmt.Println(math.Sqrt2) give me ...0951. https://en.wikipedia.org/wiki/Square_root_of_2
According to https://golang.org/pkg/math/#pkg-constants Sqrt2 is defined with far more digits, so rounding precision shouldn't be an error. Can anyone tell me why math.Sqrt2 have such printing representation? This little detail is just bogging me. I use go version go1.16.3 linux/amd64. Kamil -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0dc400d7-95e0-40a8-a83a-4749fa1866ddn%40googlegroups.com.