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

Add capability to parse currency amounts given with suffixes (K, M, B, and T) #31

Open
RemyDuijkeren opened this issue Jun 6, 2015 · 3 comments
Labels

Comments

@RemyDuijkeren
Copy link
Owner

Allow to parse money with suffixes such as €126.36M, or -$2.45B. Four suffixes should be recognized: K, M, B, and T. They can be given in lower or upper case, but must directly follow the number to be interpreted as a multiplier suffix.

In this case K is thousand. The numeric value of Billion is culture dependent.

@RemyDuijkeren RemyDuijkeren added this to the v0.6.0 milestone Dec 8, 2015
@JayT82 JayT82 self-assigned this Dec 11, 2015
@JayT82
Copy link

JayT82 commented Dec 17, 2015

The suffixes are multipliers, the valuta sign is another issue.
This can also be parsed, but then a list is needed with valuta signs and corresponding valuta unit.
Also Dollarsign is tricky!! You have Australian dollars, American, so a coop with cultureinfo might be needed anyway.

@RemyDuijkeren
Copy link
Owner Author

Parsing money already works (including dollarsigns), see the code & unittest. This issue is only about supporting the suffixes K, M, B en T.

@JayT82
Copy link

JayT82 commented Dec 17, 2015

Also this page makes the distinction between Billion and Billiard, since they exist on different scales.
https://en.wikipedia.org/wiki/Long_and_short_scales

@RemyDuijkeren RemyDuijkeren removed this from the v0.7.0 milestone Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants