move formatfloat out of system (#20195)

* move formatfloat out of system

* fixes doc

* Update changelog.md

* careless

* fixes

* deprecate system/formatfloat

* better handling
This commit is contained in:
ringabout 2022-08-24 19:38:30 +08:00 • committed by GitHub
commit b6bfe38ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 201 additions and 176 deletions

View file

@ -28,12 +28,12 @@ from std/os import getEnv, existsEnv, delEnv, putEnv, envPairs,
from std/times import cpuTime
from std/hashes import hash
from std/osproc import nil
from system/formatfloat import addFloatRoundtrip, addFloatSprintf
when defined(nimPreviewSlimSystem):
import std/syncio
else:
from std/formatfloat import addFloatRoundtrip, addFloatSprintf
# There are some useful procs in vmconv.
import vmconv, vmmarshal