Skip to content

Commit

Permalink
fix: prettier floating point numbers
Browse files Browse the repository at this point in the history
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 jbeder#1289
  • Loading branch information
SGSSGene committed Jul 14, 2024
1 parent 1d8ca1f commit 8a3c7b3
Show file tree
Hide file tree
Showing 7 changed files with 4,665 additions and 5 deletions.
Loading

0 comments on commit 8a3c7b3

Please sign in to comment.