Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript currency number format indonesia

console.log(new Intl.NumberFormat('id-ID', {
  style: 'currency',
  currency: 'IDR'
}).format(123456789)); // Rp 123.456.789,00

console.log(new Intl.NumberFormat('id-ID', {
  style: 'currency',
  currency: 'IDR',
  minimumFractionDigits: 0,
}).format(123456789)); // Rp 123.456.789
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #currency #number #format #indonesia
ADD COMMENT
Topic
Name
5+6 =