I recently ran into a discrepancy between Chrome and Firefox's
implementation of Intl's currency formatting mechanism and the
official spec.  I didn't want the output to have any significant
digits so I used the following:

    new Intl.NumberFormat('en-US', {maximumSignificantDigits: 0,
currency: 'USD', style: 'currency', currencyDisplay: "symbol"});

This works fine on Chrome and Firefox but the polyfill threw an error
and the standard appears to require at least one significant digit.

I strongly believe the spec should be changed to remove the
requirement that the output contain any significant digits.

Thank you,
-Zach Lym
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to