Skip to content

feat: Adds Format.compact_decimal utility #921

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

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

DenverCoder1
Copy link
Contributor

@DenverCoder1 DenverCoder1 commented Nov 2, 2022

Adds a shortcut to Format support utility for compact_decimal

>>> fmt = Format('en_US')
>>> fmt.compact_decimal(123456789)
u'123M'

@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Merging #921 (e46f66d) into master (a30d7cf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #921   +/-   ##
=======================================
  Coverage   91.55%   91.56%           
=======================================
  Files          21       21           
  Lines        4217     4219    +2     
=======================================
+ Hits         3861     3863    +2     
  Misses        356      356           
Impacted Files Coverage Δ
babel/support.py 84.95% <100.00%> (+0.12%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@akx akx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@akx akx merged commit 103c214 into python-babel:master Nov 2, 2022
@akx akx added this to the Babel 2.12 milestone Nov 2, 2022
@DenverCoder1 DenverCoder1 deleted the support-format-compact branch November 2, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants