Closed Bug 1350795 Opened 8 years ago Closed 8 years ago

Intl.NumberFormat has issue with 'de' locale and 'percent' style

Categories

(developer.mozilla.org Graveyard :: API, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jagath84, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1. Tried to use your number formatting object to format my user inputs.  2. Create component and tried to use it as below; const simpleFormat = new Intl.NumberFormat('de-DE', {style: 'percent'}); 3. <span>{format(true, 123456.78)}</span> 4. It gives me result as 123.456.78% When I am expecting 123.456,78% What happened? ============== It gives me result as 123.456.78% What should have happened? ========================== I am expecting 123.456,78% , and . working fine with currency style. But it seems not working with 'percent' mode Is there anything else we should know? ======================================
Actually there is no issue with this function. I realized that my value multiplied by 100 and in this percentage mode there is no default fraction points.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.