function formatMoney(n) { return "$ " + (Math.round(n * 100) / 100).toLocaleString(); } n = 2123000; // =>2,123,000
money comma separated