formatedNumber = new Intl.NumberFormat().format(2561556862056.12) console.log(formatedNumber) // "2,561,556,862,056.12"
x.toString().toLocaleString(); // x must be a number