* use dragonbox algorithm; alternative to #18008 * removed unsafe code
This commit is contained in:
parent
ba3ec7b049
commit
63db2b19bf
5 changed files with 1408 additions and 50 deletions
|
|
@ -76,6 +76,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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue