We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to dump a node into a file with float values.
YAML::Node node; node["Map"]["FloatValue"] = 123.456; std::ofstream fout("file.yaml"); fout << node;
The output that I get is
Map: FloatValue: 123.456001
Is there anyway I can set the precision in a node?
The text was updated successfully, but these errors were encountered:
emitter << YAML::Precision(3) << node;
It's only when you're using an emitter.
Also, please ask questions like this on Stack Overflow.
Sorry, something went wrong.
emitter << YAML::Precision(3) << node; It's only when you're using an emitter. Also, please ask questions like this on Stack Overflow.
this is not working for above case actually (in 0.7.0), precision setting not work in YAML::Node type
Also having similar issue with double
No branches or pull requests
I am trying to dump a node into a file with float values.
The output that I get is
Is there anyway I can set the precision in a node?
The text was updated successfully, but these errors were encountered: