To get the integer from the currency column of the 'List or Library' control you need to leave only number signs with the code like this: parseInt(data[i].Quantity1.replace(/[^0-9.]/g, ""));
Also please see how to calculate the total for a column of the 'List or Library' control in this post: