-
Notifications
You must be signed in to change notification settings - Fork 136
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
Space or other special characters break formatting #58
Comments
I had the same experience with Danish Krone and New Israeli Shekel. I didn't test any others for now. |
Is this still an issue? I can't seem to reproduce it. Can you give me an exact example? Like the value you are sending to the method and the currency you are formatting it to along with the output you get and the output you expect. Example: |
Yes, I still see this issue. Here's an example.
|
I think I've fixes this issue, was encountering it with ZAR The format for ZAR is in as 'R 1,0.00' but from looking at the code, the system works out that the decimal seperator is the , so it looks for this in the string and the number of characters after it denotes the decimal places, so changing this code to 'R 1,0,00' resolves the issue. Not sure if I've read this right but it fixed it for me for this currency. |
Oh perfect. I'll add a fix to the currency format presets. Thank you |
Hi... Did you actually fixed this issue? I'm still having this problem. For example:
If I remove the space in the format it works fine. |
Still not fixed |
Function below doesn't give results that one would expect if format involves extra space, dot etc.
Two examples:
kr 1,0.00
→kr 12 345,6789
kr. 1,0.00
→kr. 12.346
Both formats are default so it looks like something doesn't work as it should ;)
The text was updated successfully, but these errors were encountered: