0
Javascript has an internal function for this. Number.prototype.toLocaleString
var valor = 16.00;
var texto = valor.toLocaleString("pt-BR",
{ style: "currency" , currency:"BRL"});
console.log(texto);
Source: /a/102582
0
1
Javascript has an internal function for this. Number.prototype.toLocaleString
var valor = 16.00;
var texto = valor.toLocaleString("pt-BR",
{ style: "currency" , currency:"BRL"});
console.log(texto);
Source: /a/102582
Browser other questions tagged html5 angular
You are not signed in. Login or sign up in order to post.