How to add Trailing zeroes to an integer
<p>I have a positive integer variable which can have values between 0 to 999. This integer is then passed to a software.</p>

<p>To pass into this software the integer should always be 3 digits. But the problem is, it should have trailing zeroes.</p>

<p>For example:</p>

<pre><code>1 should be passed as 100
19 should be passed as 190
255 should be passed as 255
</code></pre>

<p>It can be done by checking the length of the variable and multiplying with 10 or 100 depending on the length. But is there any better Python alternative. Also this doesn't work for value 0.</p>

<p>(Note: Trailing Zeroes is because the integer value is actually a millisecond value. The software reads the values digit by digit and it always needs 3 digits)</p>