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
Here's a playground showing how formatting float32 as float32 gives the correct result, but formatting a float32 as a float64 causes incorrect results: https://play.golang.org/p/jbseI1ivyMW
Currently, all float values are formatted using 64-bit, but that
incorrectly formats float32 values like 0.01 and 0.99.
See https://play.golang.org/p/jbseI1ivyMW for more context.
Fixesgo-yaml#352.
prashantv
changed the title
flaot32 values like 0.99 are formatted incorrectly
float32 values like 0.99 are formatted incorrectly
Mar 28, 2018
Currently, all float values are formatted using 64-bit, but that
incorrectly formats float32 values like 0.01 and 0.99.
See https://play.golang.org/p/jbseI1ivyMW for more context.
Fixes#352.
While updating to the latest version, I noticed that float32 values like 0.01 and 0.99 are now formatted incorrectly.
E..g, test failure output for 0.99
I think this is related to #314
I'm working on a fix.
The text was updated successfully, but these errors were encountered: