mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
In https://codereview.qt-project.org/#/c/99815/ implemented in QT 5.5, doubles are converted to strings using '%.17g', so short decimal values might be expanded to long strings depending on their values. https://wiki.qt.io/New_Features_in_Qt_5.7 has a logic to avoid this, but if we select carefully the double to have both an exact binary and decimal representation, that can work will all versions. $ python -c "print('%.17g' % 9.7)" 9.6999999999999993 $ python -c "print('%.17g' % 1.25)" 1.25