Remove commas from numbers

  • Thread starter Thread starter SpudGuy
  • Start date Start date
S

SpudGuy

Guest
I have a simple calculator that converts one number to another based on units. For example, convert a number in square inches to a number in square feet. There is a text box for entering the number to convert, two drop-downs to select the units and another text box to show the answer. Plus a button to start the conversion.



The calculator works fine if the numbers are entered without commas. However, if commas are used, everything after the first comma is ignored.



For example: 1,234 becomes 1 and the calculation is incorrect.



How do I take out the comma(s)?



Thanks,

Spudguy

Continue reading...
 
Back
Top