Skip to content

Fix intcomma with ndigits=0#26

Merged
hugovk merged 1 commit intopython-humanize:mainfrom
hugovk:fix-intcomma-ndigits-0
Jun 21, 2022
Merged

Fix intcomma with ndigits=0#26
hugovk merged 1 commit intopython-humanize:mainfrom
hugovk:fix-intcomma-ndigits-0

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Jun 21, 2022

Fixes #24.

Changes proposed in this pull request:

  • Before:
    • humanize.intcomma(12345.111, ndigits=0) == "12,345.111"
  • After:
    • humanize.intcomma(12345.111, ndigits=0) == "12,345"

@hugovk hugovk added bug Something isn't working changelog: Fixed For any bug fixes labels Jun 21, 2022
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 21, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (29d37fb) to head (03863fe).
⚠️ Report is 493 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #26   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files           9        9           
  Lines         666      666           
=======================================
  Hits          660      660           
  Misses          6        6           
Flag Coverage Δ
macos-latest 97.89% <100.00%> (ø)
ubuntu-latest 97.89% <100.00%> (ø)
windows-latest 97.59% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hugovk hugovk merged commit 0e6ef5a into python-humanize:main Jun 21, 2022
@hugovk hugovk deleted the fix-intcomma-ndigits-0 branch June 21, 2022 07:30
@hugovk hugovk changed the title Fix intcomma with ndigits=0 Fix intcomma with ndigits=0 Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working changelog: Fixed For any bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

humanize.intcomma(num, ndigits=0) does not behave as expected

2 participants