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

Locale aware percentage formatting

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes