title: View model format decimal ? remove value after decimal
body: <p>I am using below atrribute to format numbers (appending commas in values). Now i want to remove zero after decimal. how i can achieve the same with below property.</p>
  
  <pre><code> [DisplayFormat(DataFormatString = "{0:N}")]
    public decimal? Y01Amount { get; set; }
  </code></pre>
  
  <p>Any help is appreciated.</p>