/ QGIS Public
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make qgis_fieldtest all Qt 5.X compatible
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
- Loading branch information
Showing 2 changed files with 4 additions and 6 deletions.