Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
6.8.2, 6.9.0
-
None
Description
Hi,
The overloaded QLocale.toString function for floats does not apply the specified format parameter. This behavior seems to be independent of the QLocale region/language.
Example:
QLocale("en").toString(12.345, format="f", precision=2) >> '12' (expected outcome: '12.35') QLocale("de").toString(12.345, format="e", precision=2) >> '12' (expected: '1,23E+01')
It seems like the default format value "g" is always used.
Thank you for your help!
Georg
Attachments
Issue Links
- relates to
-
PYSIDE-2133 QLocale.toCurrencyString() omits decimals
-
- Closed
-
-
PYSIDE-2168 QLocale.toString() issues
-
- Closed
-