mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
b92cbbe280
* Fixing issue 1898 Preserve sign for number with underflowing exponent (#1900) Before this commit, simdjson parsed "-1e-999" and "-0e-999" and "-1e-342" as 0.0. After this commit, those JSON strings get parsed as -0.0. (https://en.wikipedia.org/wiki/Signed_zero) The old behavior was inconsistent with the way simdjson parsed "-0.0" as -0.0. Co-authored-by: Daniel Lemire <daniel@lemire.me> Co-authored-by: Tyson Andre <tysonandre775@hotmail.com>