title: using BigDecimal for very large numbers
body: <p>I have this code:</p>
  
  <pre><code>while (counter &lt;= t)
  {
     a = a * counter;
     c = c * r + a;
     counter++;
  }
  </code></pre>
  
  <p>and I have <code>t</code> with the value <code>101835</code>.</p>
  
  <p>The output should be 7.1*10^438, but NetBeans shows
  the output as <code>infinity</code>.</p>
  
  <p>Is there anything that will make the output as a decimal number?</p>