Search results

  1. A

    Question Error: Arithmetic operation resulted in an overflow

    Sorry didn't see that before. That works perfectly thanks for your help. Out of curiosity though, what would I do if I wanted to generate the Fibonacci numbers to well beyond the maximum value a Long / Double could store?
  2. A

    Question Error: Arithmetic operation resulted in an overflow

    Ok thanks. That makes sense. So if I changed the code from using Integer variables to Double then this would solve my problem?
  3. A

    Question Error: Arithmetic operation resulted in an overflow

    Background I am trying to create a Fibonacci number sequence with the number of terms decided by the user through a ASP drop down box. The Fibonacci sequence is then displayed in a ASP label control further down the page. The code (below) works fine for up to 45 or so terms. However if a user...
Top Bottom