I have the following code and I need that for example, if in the first field I enter 10 and in the second 20 , it shows me:
0.5 USD
but I need you to show
0.50 USD
<form oninput="x.value=parseFloat(peso.value)/parseFloat(dolar.value)">
<input type="number" id="peso" placeholder="pesos" value="">
<br>
<input type="number" id="dolar" placeholder="dolares" value="">
<hr>
<output name="x"></output> USD
</form>