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

intcomma() variant needed to handle money #118

Closed
kfmfe04 opened this issue Mar 5, 2020 · 3 comments · Fixed by #123
Closed

intcomma() variant needed to handle money #118

kfmfe04 opened this issue Mar 5, 2020 · 3 comments · Fixed by #123
Labels
enhancement New feature or request

Comments

@kfmfe04
Copy link

kfmfe04 commented Mar 5, 2020

When using intcomma on a dollar value like 14308.40, I get '14,308.4'.

It would be nice to have a moneycomma(14308.40,2) which gives me '14,308.40'.

@hugovk hugovk added the enhancement New feature or request label Mar 5, 2020
@hugovk
Copy link
Collaborator

hugovk commented Mar 9, 2020

I added an ndigits option to intcomma in #123. Please could you have a look and let me know what you think?

@kfmfe04
Copy link
Author

kfmfe04 commented Mar 21, 2020

Just pulled it out and tried it out. Thank you - works perfectly.

@hugovk
Copy link
Collaborator

hugovk commented Mar 21, 2020

Good to hear, thanks for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants