title: Javascript parseInt parseFloat and rounding decimals
body: <p>I have a javascript to autofill some inputs, without rounding it with my code it works fine it changes and autofill the inputs, but trying to add Math.round or round it rounds the decimals but does not change does not autofill if some addEventListener changes like it must do</p>
  
  <p>Working code</p>
  
  <pre><code>taxes.value = parseInt(parseFloat(totaltopay.value) * (1.00/1.19));
  </code></pre>
  
  <p>Adding some code to round the decimals it does not autofill the inputs</p>
  
  <pre><code>taxes.value = parseInt(parseFloat(Math.round(totaltopay.value) * (1.00/1.19)));
  </code></pre>
  
  <p>Any way to round this result and make it work?</p>
  
  <p>It must do the follow:</p>
  
  <p><code>taxes = 23123.764345645</code> round and show only to <code>23124</code> without dots without commas</p>
  
  <p>EDIT</p>
  
  <p>The input quantity changes the total to pay with input quantity * input sale price and that gives a total price to pay, this totaltopay input we take the amount an get the taxes, it works without rounding, but trying to round it the addEventListener stop working... As you may understand the taxes are autofilles too when changing sale price or quantity because the totaltopay change and so the taxes</p>