Removing decimals in the label formatting only works if the label is actually a number, which is not anymore if you add the string "Acres". So you need to explicitly apply some function on the field value, something like
toint(acres) || ' Acres' might do the trick. Goyo 2014-11-26 18:45 GMT+01:00 Randal Hale <[email protected]>: > Question - I'm building a map for a client. I need to label a polygon with > the Acres and the word Acres. The attribute for this polygon would be > 184.35679835. In Properties -> Labels -> Formatting I can remove the > decimals and I get 184 for a label. > > If I add the word Acres to the label -> acres || ' Acres' I expect to see > 184 Acres. Instead I see 184.35679835 Acres. > > Is there something I'm missing when adding text to a label? I think there > probably is....but I'm drawing a blank. > > Ubuntu 14.04 QGIS 2.6 > I haven't had a chance to test in Windows 7 OSGEO Install. > > Randy > > -- > ----------------- > Randal Hale > North River Geographic Systems, Inc > http://www.northrivergeographic.com > 423.653.3611 [email protected] > twitter:rjhale http://about.me/rjhale > http://www.northrivergeographic.com/spatial-connect > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
