Skip to content

Commit

Permalink
use dragonbox algorithm; alternative to #18008
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed May 31, 2021
1 parent a36efb5 commit 92de0cc
Show file tree
Hide file tree
Showing 3 changed files with 1,404 additions and 46 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
- `json` and `jsonutils` now serialize NaN, Inf, -Inf as strings, so that
`%[NaN, -Inf]` is the string `["nan","-inf"]` instead of `[nan,-inf]` which was invalid json.

- `system.addFloat` now uses the "Dragonbox" algorithm, which ensures correct roundtrips of floating point
numbers, that the minimum length representation of a floating point number is used and correct rounding.
Use `-d:nimLegacyAddFloat` for a transition period.

- `strformat` is now part of `include std/prelude`.

- Deprecated `proc reversed*[T](a: openArray[T], first: Natural, last: int): seq[T]` in `std/algorithm`.
Expand Down
Loading

0 comments on commit 92de0cc

Please sign in to comment.