You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
intcomma() loses digits from large decimal strings #496
Expected: grouping the large decimal string should retain its input digits, yielding 1,234,567,890,123,456.78. This is formatting without an explicit rounding request.
The string branch in src/humanize/number.py converts values containing a decimal point with float(value), then formats that rounded binary float. The final 7 is lost before grouping. The Decimal control shows the formatting path can preserve the value.
Activity