I have two fields containing string values, and I want to subtract them to get a decimal number as a result.
The values of the two fields could be 2.43 and 1.13;
Instead of splitting the strings and performing mathematical operations, I am exploring if there is an easier option. I wonder if parseFloat()
is not working because one of the values is in Romanian decimal "style" (using commas instead of periods)?