summaryrefslogtreecommitdiff
path: root/ext/json/vendor/fpconv.c
AgeCommit message (Collapse)Author
2025-05-26[ruby/json] Fix: generate_json_float to reserve enough memory for large ↵Jean Boussier
negative floats. Fix: https://github.com/ruby/json/issues/807 Since https://github.com/ruby/json/pull/800, `fpconv_dtoa` can actually generate up to 28 chars. https://github.com/ruby/json/commit/d73ae93d3c
2025-05-12Explicit cast down from `double` to `int`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13304
2025-05-12[ruby/json] Favor decimal notation over scientific notation for floatsJean Boussier
e.g. ``` JSON.dump(1746861937.7842371) ``` master: ``` "1.https://github.com/ruby/json/commit/746861937784+9" ``` This branch and older json versions: ``` https://github.com/ruby/json/commit/1746861937.7842371 ``` In the end it's shorter, and according to `canada.json` benchmark performance is the same. https://github.com/ruby/json/commit/866f72a437
2025-05-08[ruby/json] Constify static data in fpconv.cNobuyoshi Nakada
https://github.com/ruby/json/commit/3b605d9b1e
2025-03-24Reorganize `fpconv` vendoringJean Boussier
Make it a single file and declare the dependency.