MOrlando616
New member
- Joined
- Mar 29, 2019
- Messages
- 7
I have a variable that I need to increase by a percentage, some number of times. I want the increase to be compounded, so to speak.
For instance, I have 100 health, and I want to increase it by 10% each 'loop'. Instead of multiplying the increase (0.1) times the number of loops, giving me (100, 110, 120, etc)...I'd prefer to increase each new value by that percentage.
The goal result, with those numbers, would be 100, 110, 121, 133.1, etc...
I'm pretty sure this is a simple formula, but I just can't seem to land on it.
Thanks for the help!
For instance, I have 100 health, and I want to increase it by 10% each 'loop'. Instead of multiplying the increase (0.1) times the number of loops, giving me (100, 110, 120, etc)...I'd prefer to increase each new value by that percentage.
The goal result, with those numbers, would be 100, 110, 121, 133.1, etc...
I'm pretty sure this is a simple formula, but I just can't seem to land on it.
Thanks for the help!