Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use underlying float precision when formatting floats #353

Merged
merged 1 commit into from
Mar 28, 2018

Conversation

prashantv
Copy link
Contributor

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.

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 go-yaml#352.
@niemeyer
Copy link
Contributor

Thanks, LGTM! Let's just wait for tests.

@niemeyer niemeyer merged commit 5420a8b into go-yaml:v2 Mar 28, 2018
@prashantv prashantv deleted the float_formatting branch March 29, 2018 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants