Decimal separator conversion issue (e.g., "." to "," and vice versa)
See original GitHub issueApp version 3.2.2 - iOS Locale = USA / EU
Steps to Reproduce :
-
On an app with locale set to US, scan a
payment
QR code with anamount
using the European decimal separator,,
(e.g.,312,0919210
). -
The
amount
shown in the payment staging area ignores the decimal separator and instead displays theamount
as a whole number (e.g.,3,120,919,210
) -
Similarly, on an app with locale set to EU, scan a
payment
QR code with anamount
using the American decimal separator,.
(e.g.,312.0919210
). -
The
amount
shown in the payment staging area ignores the decimal separator and instead displays theamount
as a whole number (e.g.,3,120,919,210
)
Expected Result :
- Respect the decimal separator across regions.
The issue is likely occurring in the parseAmount
function in src/utils/transactions.ts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Change the decimal point to a comma or vice versa
Change the decimal point to a comma or vice versa · 1. On the File tab, click the Options button: · 2. In...
Read more >How to Change Commas to Decimal Points and Vice Versa in ...
Changing commas to decimals and vice versa by changing Excel Options · Click the File tab in the Ribbon. · Click Options. ·...
Read more >String to decimal conversion: dot separation instead of comma
CurrencyDecimalSeparator set to , (comma) but when I convert the string to decimal Convert.ToDecimal(mystring); I obtain a dot separate value for decimal.
Read more >How to deal with international data formats in Python
If you look at decimal separators, it seems that just about half the world uses dots and the other half uses commas. The...
Read more >Sap Script : getting comma in place of decimal point & viceversa
In one Sap script for 2 currency fields comma is there in place of decimal point & viceversa.(But rest of currency fields are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed in 3.2.3
There is also still one bug to fix here in the app. This case should work, so ill fix it and get that into the next release.