-
Notifications
You must be signed in to change notification settings - Fork 30
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
Convertion isn't correct #20
Comments
Are you using the latest version? I ran the conversion here and it looks fine. Could you share your code anyway? |
I encounter same issue |
I ran |
I think I figured out the problem; it's the decimal comma(,). Depending on your locale, google result returns either 1,000.00 or 1.000,00 i.e switches the comma and the dot. I'll take a look as soon as I can. |
@GiannhsKer @clarkjoshualopez let me know if you still have trouble with the conversion. |
No I still have the same issue, I'm connecting from Greece if that helps. |
Pass the let currencyConverter = new CC({from:"USD", to:"JPY", amount:100, isDecimalComma:true}) |
That solved it! |
I tried converting 1 JPY to EUR and it returns 76 which is incorrect. The correct number is 0,0076, but I also tried converting 1 CHF to EUR which is 0.95 but its output is 95. The code I used is copy paste from the documentation.
The text was updated successfully, but these errors were encountered: