Skip to content

Instantly share code, notes, and snippets.

@airyboy
Created November 16, 2016 13:28
Show Gist options
  • Save airyboy/0fd8209c5b7d298a20052ba6c2dd473d to your computer and use it in GitHub Desktop.
Save airyboy/0fd8209c5b7d298a20052ba6c2dd473d to your computer and use it in GitHub Desktop.
Currency formatting
let sum = 123456.78;
sum.toLocaleString('ru-RU', {style: 'currency', currency: 'RUR'});
//"123 456,78 RUR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment