Bug report #9142
"format_number" function error in label expression
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17777|
Function "format_number" in expression:
format_number(($area / 10000), 2) ||' '|| "gat"
generates bad labels. I see that in label preview (in Expression window) area is generated first as "0,00", but after simple change of expression is real value ex: "2,12". Finally in drawing there are only labels with zeroes (ex: 0,00 Db) or empty labels (in actual QGIS dev.)
#5 Updated by Diego Canales about 6 years ago
- Status changed from Closed to Reopened
- File Screen_Shot_2014-09-09_at_2.46.34_PM.png added
It still is problematic to me. It runs fine in the field calculator, also when I save it, but when I hit the toggle editing mode all the numbers switch to zeros (except for small numbers below 1,000). Can't figure out why is this.
Working on the Mac platform, version 2.4.0