Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5
-
None
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
- duplicates
-
QTBUG-81054 Format percentages distinctly from currencies and ordinary numbers
- Open