Posts by VInicius Santos • 1 point
1 post
-
-1
votes1
answer44
viewsQ: how to convert a number to real (money)?
Follows the code var n1 = 155551.15 document.write(`${n1.toFixed(2).replace('.' , ',')}`) n1.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' }) But at the time of seeing the number does…