I'm having trouble understanding how to make this html form work appropriately. The objective is for the sum of numbers to show as the result using decimal points. Currently its just showing the result in whole numbers which is making the result incorrect. I would appreciate any help, Thanks!
<form action="/action_page.php" oninput="x.value=parseInt(a.value)+parseInt(b.value)+parseInt(c.value)+parseInt(d.value)+parseInt(e.value)+parseInt(f.value)">
<label for="quantity" style="color:white;">Easy Mode:</label>
<br><br> 1
<input type="number" id="a" name="quantity" min="0" max="4" step="0.5"> 2
<input type="number" id="b" name="quantity" min="0" max="4" step="0.5"> 3
<input type="number" id="c" name="quantity" min="0" max="4" step="0.5"> 4
<input type="number" id="d" name="quantity" min="0" max="4" step="0.5"> 5
<input type="number" id="e" name="quantity" min="0" max="4" step="0.5"> 6
<input type="number" id="f" name="quantity" min="0" max="4" step="0.5"> =
<input type="submit" value="Submit">
<output name="x" for="a b c d e f" style="color:white;" ></output>
</form>