Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript 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 #number #format #indonesia
ADD COMMENT
Topic
Name
6+9 =