Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single letter instead of, e.g. "million"? #262

Closed
Zenahr opened this issue Jun 12, 2022 · 1 comment
Closed

Single letter instead of, e.g. "million"? #262

Zenahr opened this issue Jun 12, 2022 · 1 comment

Comments

@Zenahr
Copy link

Zenahr commented Jun 12, 2022

I haven't found anything in the docs showing this, but would something like:

10000 -> 10K be possible? Instead of 10 thousand

As can be seen here: https://pypi.org/project/ballpark/ (only problem with this lib is that it depends on numpy)

https://github.com/debrouwere/python-ballpark/blob/0b871cdf5b4b5f50e5f3f3d044558801783381c4/ballpark/notation.py#L105

@hugovk
Copy link
Collaborator

hugovk commented Jun 13, 2022

There's a PR for this, please see python-humanize/humanize#1.

(Closing this issue, development has moved to https://github.com/python-humanize/humanize.)

@hugovk hugovk closed this as completed Jun 13, 2022
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

No branches or pull requests

2 participants