javascript - Does Firefox 41 have a bug when formatting `new Intl.NumberFormat("es-ES").format(3500)` as `3 500`? -
when trying become familiar support of number formatting in different browsers found firefox 41 formats new intl.numberformat("es-es").format(3500)
3 500
(with space group separator) while ie 11, edge , google chrome give me 3.500
(with dot .
group separator).
i wondering, bug in firefox? or number format allowed in spanish in spain ambiguous?
var d1 = 3500; var eses = new intl.numberformat("es-es"); var formattednumber = eses.format(d1); document.body.insertadjacenthtml('beforeend', '<p>formatted number ' + d1 + ' numberformat ' + eses.resolvedoptions().locale + ' ' + formattednumber + '<\/p>');
i have tried firefox nightly , returns 3.500
instead of 3 500
. searched bugzilla , looks there have been various bug reports related number formatting locale "es-es", https://bugzilla.mozilla.org/show_bug.cgi?id=1013091 , https://bugzilla.mozilla.org/show_bug.cgi?id=1078154 have been resolved fixed. looks issue regarded bug has been fixed in nightlies/development versions of firefox.
Comments
Post a Comment