Skip to content

Intl.NumberFormat maximumFractionDigits not applying with currencyDisplay "name" #1825

@tokkozhin

Description

@tokkozhin

Bug Description

  • The issue is reproducible with the latest version of React Native.

Hermes git revision (if applicable):
React Native version: 81.5 (expo)
OS: iOS
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):

Steps To Reproduce

Run the code:

    const number = new Intl.NumberFormat('en-US', {
      style: "currency",
      currency: 'USD',
      currencyDisplay: "name",
      maximumFractionDigits: 0,
    });
    console.log(formatted.format(1));   ->   1.00 US dollars

The Expected Behavior

1 US dollar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions