title: How to change 1 to 00001?
body: <p>I want to have numbers with a fixed digit count.</p>
  <p>example: 00001, 00198, 48484</p>
  <p>I can do like this:</p>
  <pre><code>string value;
  
  if (number &lt; 10)
  {
      value = &quot;0000&quot; + number.ToString();
  }
  else if (number &lt; 100)
  {
      value = &quot;000&quot; + number.ToString();
  }
  else if (number &lt; 1000)
  {
      ...
  }
  </code></pre>
  <p>But this is a bit odd. Is there any built in function for my purpose?</p>