Answers for "Intl.NumberFormat"

1

currency symbol with negative value in bracket intl.numberformat

Intl.NumberFormat('en-US', { currencySign: "accounting",currency: "gbp", style: 'currency' ,currencyDisplay: "narrowSymbol",minimumFractionDigits:2,maximumFractionDigits:2}).format(564564.233442);
Posted by: Guest on December-26-2020
2

Intl.NumberFormat

console.log(new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(number));
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language