Number Variable Commas

I am building an interactive equation which features number variables. When the user inputs a number with commas, it is treated as a decimal and the zeroes after the comma are deleted. It's like it's defaulted as a European number system. I've seen discussion that the opposite problem used to be the case--people wanted the commas to be decimals, etc. Now the default is European.

Question: How can I let the numbers stay with commas? Or get rid of commas, but not the zeroes?

6 Replies