title: Format Double - show zero or two decimals
body: <p>I am using <a href="http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx" rel="nofollow">Standard Numeric Format Strings</a> and <a href="http://msdn.microsoft.com/en-us/library/0c899ak8.aspx" rel="nofollow">Custom Numeric Format Strings</a> to show values.</p>
  
  <p>In this case they want values like:</p>
  
  <ul>
  <li>123.0 to show as 123</li>
  <li>123.4 to show as 123.40</li>
  <li>123.44 to show as 123.44</li>
  </ul>
  
  <p>That is, they want to show either zero or two decimals, never 1.</p>
  
  <p>Now the first requirement I could solve by using "F0". The second requirement I could solve by using custom numeric format string "0.00". And the third case I could solve by using "F" (or "F2"). But in this case they want to handle all three cases in the same place. Is this possible by using some standard or custom numeric format string? Or do I need to create some special handling here?</p>