Currency IRR minor digits incorrect
Intl.js wants to format the Iranian Rial with two minor digits. It seems that is the information that ISO 4217 contains. I'm in Iran right now, and I don't believe this makes any sense. There shouldn't be any decimal digits on IRR. For what it's worth, the CLDR agrees with me.
@miracle2k can you provide more details? specifically, the exact configuration you're using, the input and the output from the polyfill, and the output from chrome/ff and co.
In Chrome:
new Intl.NumberFormat('en', {currency: 'IRR', style: 'currency'}).format(10000) "IRR10,000"
Intl.js: "IRR10,000.00"
Firefox:
new Intl.NumberFormat('en', {currency: 'IRR', style: 'currency'}).format(10000)
"IRR10,000.00"
certainly we don't have such information when formatting a number for en locale. Can you link to the CLDR details?
/cc @srl295
@caridy locale doesn't determine that aspect. The data should be looked up according to the currency code, irrespective of language. CLDR data for IRR = 0 decimal digits
Update: looks like there's a fixed list at https://github.com/andyearnshaw/Intl.js/blob/master/src/11.numberformat.js#L39 - this should be pulled from CLDR instead probably?
Perfect, I will get this fix for next release.