javascript parseFloat ‘500,000’ returns 500 when I need 500000

parseFloat( theString.replace(/,/g,'') );

Leave a Comment