title: string.Format to display only first n (2) digits in a number
body: <p>I have a mouse move coordinate,</p>
  
  <p>For example:</p>
  
  <pre><code>s = string.Format("{0:D4},{1:D4}", nx, ny);
  
  the result s is "0337,0022"
  </code></pre>
  
  <p>the question is how to show only two digits in front only?</p>
  
  <p>I would like to get:</p>
  
  <pre><code>s is "03,00"
  </code></pre>
  
  <p>Here is another example:</p>
  
  <pre><code>s = "0471,0306"
  </code></pre>
  
  <p>I want to be:</p>
  
  <pre><code>s = "04,03"
  </code></pre>
  
  <p>and when the coordinate is "-"</p>
  
  <p>example </p>
  
  <p>s = "-0471,0306"</p>
  
  <p>I want to be:</p>
  
  <pre><code>s = "-04,03"
  </code></pre>