title: Format a decimal in a view
body: <p>If I have a decimal value in a field, and I am trying to display on a page, how do I format it (I would use string.format in web forms):</p>
  
  <pre><code>@Html.DisplayFor(Function(modelItem) String.Format("{0:n0}",currentItem.QualityM1))
  </code></pre>
  
  <p>That errors in VS2010 with the messae: Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.</p>