html type number decimal code example
Example 1: input type that allows float number
<input type="number" step="0.01">
Example 2: html number format decimal places
<input type="number" onchange="setTwoNumberDecimal" min="0" max="10" step="2.5" value="0.00" />