Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string comma seprated price to int

let output = parseFloat("2,299.00".replace(/,/g, ''));
console.log(output);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #comma #seprated #price #int
ADD COMMENT
Topic
Name
2+5 =