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

Writing doubles results in excess precision being written. #95

Open
thomas-frantz opened this issue Dec 21, 2018 · 0 comments
Open

Writing doubles results in excess precision being written. #95

thomas-frantz opened this issue Dec 21, 2018 · 0 comments

Comments

@thomas-frantz
Copy link

So I found this merge that seems to be related to fixing this: https://github.com/skystrife/cpptoml/pull/18/files

I load up this toml:

[graphics]
gamma = 1.1

I load this toml and save this toml doing:

auto file = cpptoml::parse_file("in.toml")
std::ofstream out("out.toml", std::ios::trunc | std::ios::out);
out << (*file);
out.close();

And it results in this toml being generated:

[graphics]
	gamma = 1.1000000000000001
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

1 participant