title: How to force Razor to make Editorfor to input number type for float variable?
body: <p>Here is my code in MVC 5:</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.myfloatvalue, new { @type = "number", @min = "0", @step = "0.01", @value = "0" })
  </code></pre>
  
  <p>And here is the html code:</p>
  
  <pre><code>&lt;input class="text-box single-line" data-val="true" data-val-number="The field Fix Amount must be a number." data-val-required="The Fix Amount field is required." id="myfloatvalue" name="myfloatvalue" type="text" value=""&gt;
  </code></pre>
  
  <p>Not to </p>
  
  <pre><code>&lt;input class="text-box single-line" data-val="true" data-val-number="The field Fix Amount must be a number." data-val-required="The Fix Amount field is required." id="myfloatvalue" name="myfloatvalue" type="number" min="0" step="0.01" value="0"&gt;
  </code></pre>
  
  <p>What should I do?
  <br>
  Thanks for response!</p>