In my case I had numbers formated with dots and commas, ex: 100.035,45
I fixed it by updating the formatFloat function to:
this.formatFloat = function (s) {
var i = parseFloat(s.replace(/[.]/g, '').replace(',', '.'));
return (isNaN(i)) ? 0 : i;
};
Thanks to your input, Jim :)