I have a value that is formatted like 2.083.817. When using jquery script CounterUp it gives me a NaN - probably because of the two "." separators.
The value is being converted with this:
var nums = [];
var divisions = $settings.time / $settings.delay;
var num = $this.text();
var isComma = /[0-9]+,[0-9]+/.test(num);
num = num.replace(/,/g, '');
var isInt = /^[0-9]+$/.test(num);
var isFloat = /^[0-9]+\.[0-9]+$/.test(num);
var decimalPlaces = isFloat ? (num.split('.')[1] || []).length : 0;
I am not quite sure how I can get the script to handle the value with the two "." separators.