Hi, 

In a QGIS expression I wanted to format a decimal nr to a fixed format:
4 digits (with leading zeros) before the decimal point and then a fixed
3 decimal places with trailing zeros if necessary. 

e.g. 

4.5 should become 0004.500 

78.45 should become 0078.450 

Is there an existing expression function for that or would I have to
create my own custom Python expression using the format() method in
Python? 

Thanks, 

Andreas
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to