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
The rounding is correct. Neither 3.85 nor 4.85 are exactly representable as IEEE-754 floats, so even if you wrote "3.85" and "4.85" in your code, what you'll really get is the nearest representable float64s, which are:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
What did you do?
What did you expect to see?
3.9
4.9
What did you see instead?
3.9
4.8
The text was updated successfully, but these errors were encountered: