I'm trying to cast a value from string to decimal but it doesn't give me the correct value this my code :
operation['montant'] = "12 000,00" ;
var value = parseFloat((operation['montant']).replace(",", "."));
alert(value);
alert(value) give me only 12
Can someone help me thank you in advance
parseFloat"...If it encounters a character other than a sign (+ or -), numeral (0-9), a decimal point, or an exponent, it returns the value up to that point and ignores that character and all succeeding characters. Leading and trailing spaces are allowed."