Looking for solution to get full currency value including pennies. numberingSystem: 'fullwide'
coming with letter spacing when getting full digits. Is there any option to get full digit with currency code in NumberFormat() ?
Expected behaviour: €56.123456
const CurrencyFormat = (amount = 0, currency = 'eur', digitLength = 'latn') => {
return new Intl.NumberFormat('en-GB', {
style: 'currency',
currency: currency,
numberingSystem: digitLength,
}).format(amount)
};
console.log(CurrencyFormat(56.123456, 'eur', 'fullwide'));
console.log(CurrencyFormat(56.123456));