question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decimal separator conversion issue (e.g., "." to "," and vice versa)

See original GitHub issue

App 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 an amount using the European decimal separator, , (e.g., 312,0919210).

  • The amount shown in the payment staging area ignores the decimal separator and instead displays the amount 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 an amount using the American decimal separator, . (e.g., 312.0919210).

  • The amount shown in the payment staging area ignores the decimal separator and instead displays the amount 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
cokes518commented, Jun 4, 2021

fixed in 3.2.3

1reaction
tyler-whitmancommented, Jun 2, 2021

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.

Similarly, on an app with locale set to EU, scan a payment QR code with an amount using the American decimal separator, . (e.g., 312.0919210).

The amount shown in the payment staging area ignores the decimal separator and instead displays the amount as a whole number (e.g., 3,120,919,210)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found