I expected int64(math.Inf(+1)) == math.MaxInt64, but it does not. In fact, these three values are equal: int64(math.Inf(+1)) int64(math.Inf(-1)) math.MinInt64
This surprised me, and the language spec didn't clarify this specific behavior, so I wondered whether it was intentional. If so, why? ~Jonathan -- 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/3970aef1-8416-4102-bbd7-72033993e9b0n%40googlegroups.com.