Answers for "javascript moeda reais"

1

javascript moeda reais

var atual = 600000.00;

//com R$
var f = atual.toLocaleString('pt-br',{style: 'currency', currency: 'BRL'}).replace(".", ",");

//sem R$
var f2 = atual.toLocaleString('pt-br', {minimumFractionDigits: 2}).replace(".", ",");
Posted by: Guest on May-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language