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

Numbers are rounded #362

Open
Feofilakt opened this issue Aug 17, 2022 · 2 comments
Open

Numbers are rounded #362

Feofilakt opened this issue Aug 17, 2022 · 2 comments

Comments

@Feofilakt
Copy link

Hello!
Numbers are rounded and converted to exp notation: https://play.spruce.cf/#39a2a4d6ebafb495ede3dc87a4723512

--- # first.yml
some_data: this will be overwritten later
--- # second.yml
some_data: 4200000.42

some_data: 4.2000005e+06

Its a bug or feature?

@geofffranks
Copy link
Owner

This is also part of the https://gopkg.in/yaml.v2 library. See go-yaml/yaml#669 for more details.

@Feofilakt
Copy link
Author

If I understood that issue correctly, there is an option "%g" that must keep accuracy

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

No branches or pull requests

2 participants