title: ASP.NET MVC USD Currency Validation
body: <p>In my ViewModel, I have the following <code>System.ComponentModel.DataAnnotations</code> on a property that contains USD currency:</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:C2}")]
  [Range(0.01, 100000, ErrorMessage = "Payment amount is required between .01 and $100,000.")]
  [DataType(DataType.Currency)]
  [DisplayName("Payment Amount")]
  public Double PrinAmount { get; set; } = 0.00;
  </code></pre>
  
  <p>When I enter a value of <code>$10.005</code>, I get the following validation model error from the <code>ModelState.IsValid</code> check:</p>
  
  <blockquote>
    <p>The value '$10.005' is not valid for Payment Amount.</p>
  </blockquote>
  
  <p>When I enter a value <code>10.005</code>, the <code>ModelState.IsValid</code> is equal to <code>true</code>.  </p>
  
  <p>What do I need to do to modified the validation to capture both formats as invalid?</p>