title: c# - Convert number in string to have certain number of digits
body: <p>I have a number in string format. This number will be between 1-6 digits and i need to convert it to be filled with zeroes on left side in order to always be 6 digit number. Is there any more efficient way than this?</p>
  
  <pre><code>Int32.Parse("5").ToString("D6")
  </code></pre>
  
  <p>Conversion to int just feels a bit unnecessary. </p>