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

improve format_percent #235

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WilliamSampaio
Copy link

Hello,

When using the format_percent function, I noticed that the percentage value always rounded to an integer. That's why I set out to improve it.

I added another parameter that determines whether or not the result should be rounded.

This parameter already exists in the format_percent function of babel.numbers, so I just made the call.

grateful!

When using the format_percent function, I noticed that the percentage value always rounded to an integer. That's why I set out to improve it. :)
@WilliamSampaio WilliamSampaio changed the base branch from master to dev October 4, 2023 08:13
@WilliamSampaio WilliamSampaio changed the base branch from dev to master October 4, 2023 08:16
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.

None yet

1 participant