Re: [QGIS-Developer] round function not working

2018-09-03 Thread Nyall Dawson
On Mon, 3 Sep 2018 at 16:19, Raymond Nijssen wrote: > > On 03-09-18 02:00, Nyall Dawson wrote: > > On Sun, 2 Sep 2018 at 20:47, Raymond Nijssen wrote: > >> > >> Just discovered similar unexpected rounding behavior, but a bit > >> different I think: > >> > >> > >> My expression is this one, to

Re: [QGIS-Developer] round function not working

2018-09-03 Thread Raymond Nijssen
On 03-09-18 02:00, Nyall Dawson wrote: On Sun, 2 Sep 2018 at 20:47, Raymond Nijssen wrote: Just discovered similar unexpected rounding behavior, but a bit different I think: My expression is this one, to show lengths of tracks on my map, in km: "etappe" || '\n (' ||

Re: [QGIS-Developer] round function not working

2018-09-02 Thread Nyall Dawson
On Sun, 2 Sep 2018 at 20:47, Raymond Nijssen wrote: > > Just discovered similar unexpected rounding behavior, but a bit > different I think: > > > My expression is this one, to show lengths of tracks on my map, in km: > > "etappe" || '\n (' || >

Re: [QGIS-Developer] round function not working

2018-09-02 Thread Raymond Nijssen
Just discovered similar unexpected rounding behavior, but a bit different I think: My expression is this one, to show lengths of tracks on my map, in km: "etappe" || '\n (' || round((length(transform($geometry,'epsg:4326','epsg:31466'))/1000), 1) || ' km)' The rounding does actually work

Re: [QGIS-Developer] round function not working

2017-12-22 Thread matteo
Hi Andreas, thanks for the testing. I'm suspecting that something is weird with my data thanks and sorry for the noise! Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] round function not working

2017-12-22 Thread Andreas Neumann
Hi Matteo, Just tested on both Linux (latest master) and Windows (a bit older). Both work fine with round(7.34562, 2) Result is as expected (7.35). Andreas On 22.12.2017 10:45, matteo wrote: Hi devs, I just compiled QGIS and it seems that the round function in the field calculator is not

Re: [QGIS-Developer] round function not working

2017-12-22 Thread matteo
Yep, thanks Pedro Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] round function not working

2017-12-22 Thread Pedro VenĂ¢ncio
Hi Matteo, Seems similar to this one: https://issues.qgis.org/issues/6640 ? 2017-12-22 9:45 GMT+00:00 matteo : > Hi devs, > > I just compiled QGIS and it seems that the round function in the field > calculator is not working properly. > > Without any decimal number it

[QGIS-Developer] round function not working

2017-12-22 Thread matteo
Hi devs, I just compiled QGIS and it seems that the round function in the field calculator is not working properly. Without any decimal number it works nice (round(7.34562) -> 7) but when specifying how many decimals have to be used (round(7.34562, 2) -> 7.34562) there are not taken into account