JonPM Well-Known Member Licensed User Longtime User Jan 3, 2016 #1 I have a calculator app which allows for decimal number input only. The problem is that some devices (depending on locality) use the comma instead of a period for decimal point. So currently if the user uses ',' as the separator my app returns 0 as answer. What is the best method of performing arithmetic on inputs that use comma?
I have a calculator app which allows for decimal number input only. The problem is that some devices (depending on locality) use the comma instead of a period for decimal point. So currently if the user uses ',' as the separator my app returns 0 as answer. What is the best method of performing arithmetic on inputs that use comma?
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2016 #2 The easiest way will be to replace the comma with a dot: Code: s = s.Replace(",", ".") Upvote 0