codereport / jsource

J Language Source Code. Livestream links ⬇️
https://www.youtube.com/playlist?list=PLVFrD1dmDdvfVhYLU_iKkV67X9XqCJLWe
Other
38 stars 20 forks source link

Remove `dtoa.c/h` #124

Open codereport opened 3 years ago

zhihaoy commented 3 years ago

J currently does not do perfect round-trip floating formatting. The bundled dtoa code is used in the foreign 8 https://www.jsoftware.com/help/dictionary/dx008.htm It may be possible to replace those with some libraries such as dragonbox. I added perfect round-trip floating formatting to the J fork for my employer using dragonbox https://github.com/zhihaoy/jsource/blob/jruntime-pyd/jsrc/cvr.cpp