title: Value in javascript console not the same as array
body: <p>When running the below function in chrome I can not figure out why the value of typing in the equation into the console is different from the terminal value of the array yearlyp, since yearlyp is being pushed that same equation, I also noticed that yearlyp never has negitive results when it should. Why does this happen? All the other variables outside the function are static.</p>
  
  <pre><code>((revenue * margin) * total_customer) - ((leadr * lead) + (lead * (hours * hr)))
  
  15644.809809408005
  
  yearlyp
  
  [9891, 17803.8, 24134.04, 29198.232000000004, 33249.585600000006, 36490.66848, 39083.534784, 41157.82782720001, 42817.26226176001, 44144.809809408005]
  </code></pre>
  
  <p>here is the function:</p>
  
  <pre><code>   function cgr() {
  total_customer = 0;
  TCC = [];
  yearlyp = [];
  years = [];
  for (year1 = 0; (churn * total_customer) &lt; ((leadr * closing) - 0.9); year1++) {
          if ((churn * total_customer) &gt;= (leadr * closing)) {
              final = year1;
          } else {
          total_customer = (total_customer + (leadr * closing)) - (churn * total_customer);
          yearlyp.push((revenue * margin) * total_customer) - ((leadr * lead) + (lead * (hours * hr)));
          years.push(year1);
          TCC.push(total_customer);
          console.log("total customer = " + total_customer + " |churn * total customer = " + (churn * total_customer) + " |leadr * closing =  " + (leadr * closing) + " |year = " + year1);
      }
  }
  </code></pre>
  
  <p>}</p>