Angular define input of float value <p>How would i define my input to be persistently be a float value and accept float values only ? below is my code but does not work as intended ?</p> <pre><code> &lt;input type="number" step="0.01" placeholder="Amount" class="form-control" ng-model="choice.amount"/&gt; </code></pre>