title: MVC3 Decimal truncated to 2 decimal places on edit
body: <p>I'm running MVC3 with Razor and noticed that decimal values are truncated to 2 decimal places when in edit mode. I've managed to get round it by annotating my property with a display format. This  doesn't seem like a very good solution as I'll have to remember to do this for every new view I generate (or update my templates).</p>
  
  <p>I have checked the value returned by our service to the controller and it is correct at 1.144, but when bound to the view it comes out as 1.14 in the TextBox</p>
  
  <p>ViewModel Property </p>
  
  <pre><code>[Required]
  [Display(Name = "Unit Price")]
  public decimal UnitPrice { get; set; }
  </code></pre>
  
  <p>.cshtml Code</p>
  
  <pre><code>@Html.LabelFor(model =&gt; model.UnitPrice) 
  @Html.EditorFor(model =&gt; model.UnitPrice) 
  @Html.ValidationMessageFor(model =&gt; model.UnitPrice)
  </code></pre>
  
  <p>If I decorate the property with the following then it works.</p>
  
  <pre><code>[DisplayFormat(
                 ApplyFormatInEditMode = true, 
                 DataFormatString = "{0:0.00###########################}", 
                 NullDisplayText = "")]
  </code></pre>
  
  <p>Any Ideas?</p>