I need you to only receive values with this formatting (20.00)
Resolved
<!-- apenas números-->
<script>
function somenteNumeros(num) {
var er = /[^0-9.]/;
er.lastIndex = 0;
var campo = num;
if (er.test(campo.value)) {
campo.value = "";
}
}
</script>
<input class="form-control input-sm" onkeyup="somenteNumeros(this);" placeholder="valor" maxlength="5" type="text" ng-model="numero.valor" />