I wish to use rounded values as labels using QGIS 3.4.4. My field is type "double" and the the data source is a Spatialite table. I notice two odd behaviors linked to this problem. First, the attribute values have false precision. For example, in the source file, a value is 16.300000, but it appears as 16.300000000000001 in QGIS. Second, when I attempt to use the round function under labels, the value can either be truncated to zero decimal places using round
or the precision can't be reduced at all, no matter what precision I supply to round.
How can I resolve this problem?
Help → About QGIS
?16.300000000000000710542735760100185871124267578125
.