title: C# MVC.Net format currency without decimals
body: <p>I'm looking for a DataFormatString that will display a float as a currency. But omit the decimal values if they're irrelevant (0's).</p>
  
  <p>At the moment I'm using:</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:C}")]
  </code></pre>
  
  <p>On my models. This is displaying as a currency correctly. I've not been able to find anywhere that details what changes I need to make to omit the decimal places?</p>