<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>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.</p>
<p>e.g.</p>
<p>4.5 should become 0004.500</p>
<p>78.45 should become 0078.450</p>
<p>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?</p>
<p>Thanks,</p>
<p>Andreas</p>
<div> </div>
</body></html>