ringabout
b6bfe38ff5
move formatfloat out of system ( #20195 )
...
* move formatfloat out of system
* fixes doc
* Update changelog.md
* careless
* fixes
* deprecate system/formatfloat
* better handling
2022-08-24 13:38:30 +02:00
flywind
7f6e800caf
move assertions out of system ( #19599 )
2022-03-23 20:34:53 +01:00
Timothee Cour
cc0f02d57d
rename nimFpRoundtrips => nimPreviewFloatRoundtrip ( #18566 )
2021-07-23 14:57:47 -07:00
Timothee Cour
cf0cf32d27
make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400 , etc ( #18531 )
...
* compiler/vmhooks: add getVar to allow vmops with var params
* addFloat vmops with var param
* cgen now renders float32 literals in c backend using roundtrip float to string
2021-07-20 22:13:52 +02:00
Andreas Rumpf
25efb53862
make dragonbox opt-in via -d:nimFpRoundtrips ( #18504 )
...
* make dragonbox opt-in via -d:nimFpRoundtrips
* make tests green again
* make tests green again
2021-07-16 18:29:49 +02:00
Andreas Rumpf
63db2b19bf
use dragonbox algorithm; alternative to #18008 ( #18139 )
...
* use dragonbox algorithm; alternative to #18008
* removed unsafe code
2021-06-01 22:29:53 +02:00
Timothee Cour
e4415422fe
Revert "printing float values will have one more digit. ( #13276 ) [backport]" ( #13363 )
...
This reverts commit b2c6db97f9 .
2020-02-08 09:30:24 +01:00
Arne Döring
b2c6db97f9
printing float values will have one more digit. ( #13276 ) [backport]
...
* printing float values will have one more digit. Fixes #13196
2020-02-07 17:10:25 +01:00
cooldome
7650617448
NaN floatFormat with clang_cl ( #12910 )
...
* clang_cl nan floatFormat
* format
2019-12-17 11:25:46 +01:00
Andreas Rumpf
7bc5bf8334
consistent floating point output ( #12219 )
...
* unify float printing
* makes tests green
2019-09-20 10:41:40 +02:00