title: Classic ASP App CINT failure - twitpocalypse v2
body: <p>Due to a qty value exceeding what a VBScript INT can store, I'm getting a pretty nasty error message (actually the users are)...  This is totally a case of <a href="http://www.twitpocalypse.com/" rel="nofollow noreferrer">twitpocalypse</a>.</p>
  
  <p>Since CINT() will not work in this situation, what is the best workaround?</p>
  
  <pre><code>requestqty = 40200
  CInt() max = 32767
  
  CInt(requestqty) 
  </code></pre>
  
  <p><strong>EDIT</strong>  <br>
  CLng() seems to do the trick, any risk to the code to change all CInt() to CLng().  From what I've read below and elsehwere on the web, it seems like there is really very little reason to even use CInt().  I didn't write this particular app and don't know why one was used over the other, but would prefer to not bandaid the issue and completely fix this issue in the app so it does not happen again...</p>