I used
When I put 1.3, 1, 1.1111Qt Code:
To copy to clipboard, switch view to plain text mode
the console show: 1.30 1.00, 1.11
BUT How to remove the last 0 number: 1.3, 1, 1.11
I used
When I put 1.3, 1, 1.1111Qt Code:
To copy to clipboard, switch view to plain text mode
the console show: 1.30 1.00, 1.11
BUT How to remove the last 0 number: 1.3, 1, 1.11
With format 'f' the last number (2 in your example) defines the number of digits after the decimal point.
See http://doc.qt.io/qt-5/qstring.html#argument-formats
Ginsengelf
Bookmarks