Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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(".", ",");

 
PREVIOUS NEXT
Tagged: #javascript #moeda #reais
ADD COMMENT
Topic
Name
9+9 =