You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please paste text as text, not as an image. Thanks.
This is expected behavior. In floating point arithmetic, dividing a finite value by zero gives you an infinity, not an error. See "Floating-point operators" at https://golang.org/ref/spec#Arithmetic_operators.
In Go, constant arithmetic does not use the same rules as variable arithmetic. In particular, constant floating point values have no infinity, or NaN, or negative zero. See https://golang.org/ref/spec#Constant_expressions .
In general for questions about the language it's better to use a forum. You will get better and faster answers. See https://golang.org/wiki/Questions.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
an error
What did you see instead?
The text was updated successfully, but these errors were encountered: