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
I was hoping to either see the original value, or an error if some floating point precision had been lost. For the example provided, I hoped that either 9999999999999905 would be the returned number, or that I would get an error.
What did you see instead?
9999999999999904, and no error.
The text was updated successfully, but these errors were encountered:
JRoper18
changed the title
affected/package:
bug/feature? strconv large floating-point parsing
Sep 13, 2022
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is the latest re
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
See https://go.dev/play/p/8_0ETuSnOcj
I used the strconv to convert a string of a (very large) float to a float.
What did you expect to see?
I was hoping to either see the original value, or an error if some floating point precision had been lost. For the example provided, I hoped that either 9999999999999905 would be the returned number, or that I would get an error.
What did you see instead?
9999999999999904, and no error.
The text was updated successfully, but these errors were encountered: