Hi Matthieu,
It works, but slightly simpler ;-)
We don't need the calculation "n-length("my_number"), because the second
parameter is the total string length.
Anyway, it works now for me and it is rather easy with lpad.
Thanks,
Andreas
On 2017-07-12 10:16, Mathieu Pellerin wrote:
>
Andreas,
I think you're looking for: lpad("my_number",n - length("my_number"),0)
Math
On Wed, Jul 12, 2017 at 3:02 PM, Neumann, Andreas
wrote:
> Hi,
>
> Is there a way in a QGIS expression to format numbers with leading zeros
> up to n places before the decimal point?