-
Notifications
You must be signed in to change notification settings - Fork 440
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
format_currency with Japanese JPY does not shave decimals #139
Comments
You aren't doing anything wrong but this is not supported yet as far as I can tell. Proper support for this would mean extracting currencyData/fractions data in CLDR's |
If you could point me into where to start / look in the code and integrate this, I think I'll fork it and give it a try. |
Sure. The first step would be to import the data from the CLDR file. This happens in |
Looks like some work was done in #120 but then the author closed the PR. |
I'm a little discouraged from doing the work as it seems the project has been almost abandoned by the mitsuhiko. Why would a pull request like that just be 'closed'? |
FWIW #120 was closed by its own author. But it's true that there hasn't been much activity recently and that PR and issues are piling up. I'm using my own fork in the meantime... |
I don't remember now if I explicitly closed the pull request or GitHub did it when I renamed the branch. I normally use Mercurial so I have a very hard time tyring to work with Git and GitHub together. Anyhow, I keep working on this branch when I need some fixes or improvements. For instance, these days I'm trying to improve the performance of the currency formatter, as we hit a bottleneck there at work. From time to time, I also check to see more attempts to upgrade to CLDR >= 26. Currently, Armin seems to be more focused on Rust than on Python, so don't expect this repository to receive much attention. It's a bit fo a pity, since he took over the previous maintainer precisely for the same reason. Fortunately, this is open source, so you can do as you please with it, just as I did. |
It is to my understanding that the Japanese Yen (JPY) does not use decimal places. Therefore, I'd say if I passed in a decimal to format_currency, and used ja_JP for the locale as well as JPY for the currency, I should get that decimal rounded.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: