Skip to content

Add percentage function - #413

Open
bowbowka wants to merge 1 commit into
python-humanize:mainfrom
bowbowka:feat/percentages-and-ratios
Open

bowbowka wants to merge 1 commit into
python-humanize:mainfrom
bowbowka:feat/percentages-and-ratios

Conversation

@bowbowka

Copy link
Copy Markdown

Fixes #277

Changes proposed in this pull request:

  • Add percentage() function to humanize.number to format numbers and ratios as percentages with customizable precision.
  • Export percentage in top-level humanize package (__all__).
  • Add comprehensive test cases in tests/test_number.py.
  • Update README.md with usage examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Percentages and ratios

1 participant