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

Proposed function: format.pronounce_currency() #166

Open
ChanceNCounter opened this issue Dec 16, 2020 · 0 comments
Open

Proposed function: format.pronounce_currency() #166

ChanceNCounter opened this issue Dec 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ChanceNCounter
Copy link
Contributor

Larger undertaking than it sounds, but will be easier with pronounce_digits() (#130/#150).

Reason it's a larger undertaking than it sounds:

$236.58 (en-us)
colloquially: "two thirty six fifty eight"
unambiguous: "two thirty six and fifty eight cents"
formal: "two hundred thirty six dollars and fifty eight cents"
NOT: "two hundred thirty six fifty eight"

$236,580
colloquially, in financial discussion: "two thirty six five eighty"
usually: format.pronounce_number(236580, lang='en-us') (don't ask me why big numbers get formal, but they do)
possibly: "two hundred thirty six thousand five hundred eighty dollars [exactly/even]"
NOT: "two thirty six five eighty dollars"

@ChanceNCounter ChanceNCounter added the enhancement New feature or request label Dec 16, 2020
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

No branches or pull requests

1 participant