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 #1289
  • Loading branch information
SGSSGene committed Jul 14, 2024
1 parent 1d8ca1f commit f739fd1
Show file tree
Hide file tree
Showing 7 changed files with 4,659 additions and 5 deletions.
Loading

0 comments on commit f739fd1

Please sign in to comment.