Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: My while loop has run into an infinite loop...?

    without knowing the specifics of how you're calculating the half-life, it's difficult to figure out what's wrong. However, I suspect that the problem is dividing by 100 as your ~100x off.
  2. [SOLVED] Re: My while loop has run into an infinite loop...?

    At no point in your loop are you modifying the value of computedAmount. Also, even if you replaced amountRemaining with computedAmount, the value you're assigning is an unchanging value.
Results 1 to 2 of 2