Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript iterate through a map 
Javascript :: angular loop 
Javascript :: ngx toastr 
Javascript :: windows cmd horizontal line 
Javascript :: sort by string react 
Javascript :: node.js - How do I convert an image to a base64-encoded data URL 
Javascript :: foreach loop in react 
Javascript :: reduce break 
Javascript :: jquery google 
Javascript :: upload file in react 
Javascript :: styled components import google font 
Javascript :: how to get day name in moment js 
Javascript :: jest enzyme test receive submit 
Javascript :: create an attribute for html with javascript 
Javascript :: convert utc string to date format of mm dd/mm/yyyy in javascript 
Javascript :: jquery checkvalidity 
Javascript :: flutter regular expression for arabic and english characters 
Javascript :: active nav links in next.js 
Javascript :: jquery on click outsile hide div 
Javascript :: js capitalize first letter 
Javascript :: picker change event react native 
Javascript :: localstorage clear item 
Javascript :: how to eliminate decimals in js 
Javascript :: sort object array javascript 
Javascript :: html table to excel javascript 
Javascript :: convert date to timestamp javascript 
Javascript :: javascript interval fixed number of times 
Javascript :: unstringify json js 
Javascript :: react and react dom cdn 
Javascript :: js addeventlistener arrow keys 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =