To format numbers with locale formatting conditions, you can use toLocaleString() method of Javascript Number object. So, for example: var data = 10000000; data.toLocaleString('it-IT')
// → 10.000.000 data.toLocaleString('en-US')
// → 10,000,000 With this method, you can also format numbers with currency informations: data.toLocaleString('it-IT', {style: 'currency', currency: 'EUR'})
// → 10.000.000,00 €