Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change number format in output yaml files

I am writting data to a yaml file, but I noticed that when I write a matrix of floats, (or doubles) if some value is e.g. 0.01, it writes 1.0000000000000000e-02. Is there a way to set the output format to 0.01 or to shorten the output number?