Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89383

QLocale.toCurrencyString doesn't return the right value for negative values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.2
    • Core: Locales (i18n)
    • None
    • Linux/X11

      The following code:

      QLocale(QLocale::French).toCurrencyString(-5.12341234, "$", 4)
      

      returns

      (5,1234 $)

      but should return

      -5,1234
      

      In french, negatives values are not written in parenthesis.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Eddy Edward Welbourne
            miraks Stéphane MANKOWSKI
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes