transformar moeda real javascript

Solutions on MaxInterview for transformar moeda real javascript by the best coders in the world

showing results for - "transformar moeda real javascript"
Katie
17 Nov 2019
1var atual = 600000.00;
2
3//com R$
4var f = atual.toLocaleString('pt-br',{style: 'currency', currency: 'BRL'}).replace(".", ",");
5
6//sem R$
7var f2 = atual.toLocaleString('pt-br', {minimumFractionDigits: 2}).replace(".", ",");
8
9
Greta
11 Jun 2020
1const atual = 600000.00;
2
3const valorFormatado = Intl.NumberFormat('pt-br', {style: 'currency', currency: 'BRL'}).format(atual)