title: Decimal Formatting in C#
body: <p>I want a function that shows at most N decimal places, but does not pad 0's if it is unnecessary, so if N = 2,</p>
  
  <pre><code>2.03456 =&gt; 2.03
  2.03 =&gt; 2.03
  2.1 =&gt; 2.1
  2 =&gt; 2
  </code></pre>
  
  <p>Every string formatting thing I have seen will pad values like 2 to 2.00, which I don't want</p>