Writing doubles results in excess precision being written.
thomas-frantz opened this issue · comments
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