Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-1839

Currency formatting

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • 2021Q3
    • None
    • UI
    • None

      We're currently using the JavaScript features to format currencies. However, we may want to use react-intl instead?

      Both approaches will format USD to 2 decimal places and JPY (yen) to 3 decimals. However, we're currently fixing to 2 decimals in the code below.

      return fValue.toLocaleString(getLocale(),

      { style: 'currency', currency: unit || 'USD', minimumFractionDigits: fractionDigits, maximumFractionDigits: fractionDigits, }

      );

      We at least need to remove the maximum digits. And ensure formatting works for currencies other than USD.

            dlabrecq@redhat.com Daniel Labrecque
            dlabrecq@redhat.com Daniel Labrecque
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: