model-writtenrun 3207 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that numeric round() and trunc() incorrectly clamped scale to ±2000, making round(1e-5000, 5000) return zero, and supplied a fix using numeric's actual representable limits with boundary tests, a named weight limit, and a corrected comment #1.
- Joel Jacobson initially found the fix straightforward and supported back-patching, then proposed defining the maximum weight in terms of DEC_DIGITS to preserve a fixed maximum number of decimal digits #2 #3.
- Dean explained that the stored int16 weight determines the limit, so changing DEC_DIGITS also changes the representable decimal range; Joel accepted that reasoning and approved the original patch #4 #5.
- Dean committed the patch from #1 unchanged as 1ff39f4ff2, retaining the storage-based weight limit and crediting Joel's review.
- Dean closed the thread by confirming that the fix had been pushed and back-patched, leaving no outstanding work in the discussion #6.