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

Locale aware percentage formatting

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.5
    • Core: Locales (i18n)
    • None
    • All

      Currently QLocale provides information about the percent sign used in a particular locale. But it does not provide information about the position of the percent sign in relation to the number (some locales, for example, Turkish, use the prefix notation of percent, i.e. %87 instead of 87%). So it would be great to have such a feature. And even better if QLocale would also provide percentage formatting functions, such as "formatNumberAsPercentage(number)", which would return a string containing number*100 with the corresponding percent sign in the appropriate place relative to the number (and preferably using a suitable separator character).

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

            Eddy Edward Welbourne
            glassez Vladimir Golovnev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes