[QGIS-Developer] round function not working

Andreas Neumann a.neumann at carto.net
Fri Dec 22 04:04:40 PST 2017


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 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 and no rounding operation is
> performed.
>
> I tried with different layers and field and it seems it happens anywhere.
>
> Should I open a ticket?
>
> Thanks
>
> Matteo
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list