I have a field -
:Revenue
and it should accept values like 10,000.00, but if I input such value it stores 10 into dat
10,000.00
10
Removing commas is pretty simple:
value.gsub(/,/, '').to_f
Keep in mind that European formatting often uses comma as the decimal value separator so your results would be off by a factor of 100 if processing those sorts of numbers.