title: Adding numbers across multiple fields wont add decimals
body: <p>I'm trying to calculate the values of multiple fields and place the total in another box.  It works with whole numbers but for some reason won't add 7.25 or 7.50 for example.</p>
  
  <p>I tried changing my <code>tot += parseInt(arr[i].value).toFixed(2);</code> but that didn't work.  Any help is appreciated.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        function findTotal(){
              var arr = document.getElementsByName('monday');
              var tot=0;
              for(var i=0;i&lt;arr.length;i++){
                  if(parseInt(arr[i].value))
                      tot += parseInt(arr[i].value);
              }
              document.getElementById('totalHours').value = tot;
          }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>        Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday1"/&gt;&lt;br&gt;
          Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday2"/&gt;&lt;br&gt;
          Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday3"/&gt;&lt;br&gt;
          Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday4"/&gt;&lt;br&gt;
          Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday5"/&gt;&lt;br&gt;
          Monday : &lt;input onblur="findTotal()" type="text" name="monday" id="monday6"/&gt;&lt;br&gt;
          
          &lt;br&gt;&lt;br&gt;
          Total : &lt;input type="text" name="total" id="totalHours"/&gt;</code></pre>
  </div>
  </div>
  </p>