Files
jq/tests
Nikhil Gupta 2b0e51cfb1 Fix signed integer overflow when comparing numbers with extreme exponents (#3665)
Comparing numbers whose exponents are about 2^31 apart, such as
`1e999999999 > 1e-1147483646`, overflowed a signed int in decNumber.

Reserve one more digit when capping the decimal precision, so the
exponent gap stays within int while it is converted to units. The
smallest exponent moves from -1147483646 to -1147483645, so
`1e-1147483646` now prints as `0E-1147483645` instead of
`1E-1147483646`.
2026-12-04 08:59:23 +09:00
..
…
…
…
…
…