title: math.round vs parseInt
body: <p>Have a quick JS question. What is the difference between math.round and parseInt? </p>
  
  <p>I made a JS script to sum the inverses of prompted numbers:
          
          </p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      var numRep = prompt("How many repetitions would you like to run?");
      var sum = 0; 
      var count = 0;
      var i = 1;     //variable i becomes 1
  
  
      while (i &lt;= numRep)  {//  repeat 5 times
  
         var number = prompt("Please enter a non zero integer");
  
         if(number==0){
           document.write("Invalid Input &lt;br&gt;");
   count++;
         }
         else{
            document.write("The inverse is: " + 1/number + "&lt;br&gt;");
            sum = sum + (1/parseInt(number));  //add number to the sum
         }
  
         i++; //increase i by 1
      }
  
      if (sum==0){
      document.write("You did not enter valid input");}
      else { document.write("The sum of the inverses is: " + sum);  //display sum
      }
      &lt;/script&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>and it uses parseInt. If I wanted to makeit use math.round, is there anything else I need to do so that It knows to limit the number of decimal places accordingly?</p>
  
  <p>In other words, does math.round have to be formatted in a certain way?</p>