Files
bun.sh/test/regression/issue
Claude Bot 06ff8a6d2d Fix util.inspect negative fractional number formatting with numericSeparator
Fixes #23098

When numericSeparator: true is set, negative fractional numbers between -1 and 0
(like -0.123) were incorrectly formatted as "0..123" instead of "-0.123".

The issue was that Math.trunc(-0.123) returns -0, but String(-0) becomes "0",
losing the negative sign. Fixed by checking for -0 with Object.is() and
explicitly using "-0" as the string representation.

Also fixed scientific notation handling to check the original number string
instead of the truncated integer string.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 14:51:24 +00:00
..
2025-08-06 06:44:46 -07:00
2025-01-28 17:23:57 -08:00
2025-06-03 13:23:12 -07:00
2025-06-03 23:41:37 -07:00
2025-01-17 22:08:07 -08:00
2024-06-14 01:50:36 -07:00
2025-03-03 21:38:05 -08:00
2025-05-26 21:18:22 -07:00
2025-07-03 01:06:22 -07:00
2025-07-23 22:31:42 -07:00
2025-07-20 23:02:10 -07:00