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
This does not seem specific to generic types. There is precision loss due to float64 (the default type for floats) having limited precision which is working as intended.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go2goplay.golang.org/p/y9mwmrSPe16
What did you expect to see?
3
foobar
3.33
What did you see instead?
3
foobar
3.3000000000000003
The text was updated successfully, but these errors were encountered: