allow round figure in html number input field code example
Example 1: input type=number 01
//How to make a number field with always 2 numbers displayed : 01, 02, 03 ...-->
<input id="" type="number" min="1" max="99" step="1" onchange="if(parseInt(this.value,10)<10)this.value='0'+this.value;" />
Example 2: number field for float or integer form_with
f.number_field :amount, value: number_to_currency(f.object.amount.to_f, delimiter: '', unit: ''), step: :any