Skip to content

Commit 8a3c7b3

Browse files
committed
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 #1289
1 parent 1d8ca1f commit 8a3c7b3

File tree

7 files changed

+4665
-5
lines changed

7 files changed

+4665
-5
lines changed

0 commit comments

Comments
 (0)