Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const number = 123456.789;
const formatter = new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' });
https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment