title: How to make decimal places include in the operation
body: <p>I have problem here about my javascript.
  This javascript works well, but the problem is the operation that its run did not include the decimal places that user input.
  For example the user put 13.2-10. The answer should be 3.2 rite. But the output result is 3.
  It do not calculate the decimal places. So if there someone may help, that would really be appreciate. This are my javascript:</p>
  
  <pre><code>$(window).load(function(){
      function calcSubMTotal(p) {
          var minus = 0;
          var isFirst=true;
          var minus_total = $('#' + p + '');
  
          $('.' + p + '').each(function (i) {
              if (!isNaN(this.value) &amp;&amp; this.value.length !== 0) {
                  if(!isFirst)
                      minus -= parseInt(this.value); 
                  else
                  {
                      minus=parseInt(this.value);
                      isFirst=false;
                  }
              }
          });
  
          minus_total.val(minus);
      }
  
      $('input[type=text]').on('keyup', function () {
          calcSubMTotal("rr");
      });
  });
  </code></pre>