Commit Graph

2 Commits

Author SHA1 Message Date
Simon Gene Gottlieb
9b27962497 fix: rename fp_to_string to FpToString to match coding style 2024-10-21 22:49:00 +02:00
Simon Gene Gottlieb
7476d1fd73 fix: prettier floating point numbers
Add dragonbox to compute the required precision to print floating point
numbers. This avoids uglification of floating point numbers that
happen by default via std::stringstream.

Numbers like 34.34 used to be converted to '34.340000000000003' as strings.
With this version they will be converted to the string '34.34'.

This fixes issue https://github.com/jbeder/yaml-cpp/issues/1289
2024-10-21 22:49:00 +02:00