strconv: ParseFloat not working correctly for negative exponent #34945
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, it does
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Converting string to float32 with
strconv.ParseFloat
https://play.golang.org/p/8bexC3OjUKs
What did you expect to see?
For a given value less than SmallestNonzeroFloat32 I expect an "value out of range" Error.
What did you see instead?
a result equals to 0 ! And no Error !
The text was updated successfully, but these errors were encountered: