title: CInt overflow error when value exceeds 100,000+
body: <p>I am brand new to programming and I am running into some trouble with CInt overflow error.</p>
  <p>Whenever the value reaches 100,000+ I get a CInt overflow error. This was a practice exercise in my intro to programming class. As far as I can see I coded it exactly how it was done in practice, but the practice shows using values as high as 300,000.</p>
  <p>Can someone possibly explain what I might be doing wrong?</p>
  <pre><code>&lt;script language=&quot;VBscript&quot;&gt;
  Option Explicit
  DIM numberofshifts, totalshift1, totalshift2, _
    totalshift3, grandtotal, shiftaverage
  numberofshifts=3
  totalshift1 = Inputbox(&quot;How many widgets during the first shift&quot;)
  totalshift2 = Inputbox(&quot;How many widgets during the second shift&quot;)
  totalshift3 = Inputbox(&quot;How many widgets during the third shift&quot;)
  grandtotal = cint(totalshift1) + totalshift2 + totalshift3
  shiftaverage = grandtotal / numberofshifts
  Document.write &quot;The Total of the Three Shifts is &quot; &amp; grandtotal
  Document.write &quot;&lt;br&gt;The Average of the Three Shifts is &quot; &amp; shiftaverage
  &lt;/script&gt;
  </code></pre>