Answers for "convert string into standard currency javascript"

16

how to format numbers as currency string js

(12345.67).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');  // 12,345.67
Posted by: Guest on February-23-2020
0

convert currency to string javascript

var currency = "-$4,400.50";
var number = Number(currency.replace(/[^0-9.-]+/g,""));
Posted by: Guest on September-23-2021

Code answers related to "convert string into standard currency javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language