- Joined
- Dec 15, 2019
- Messages
- 13
- Reaction score
- 1
- First Language
- Arabic
- Primarily Uses
- RMMV
I have made the following formula for gold drops from enemies with Yanfly's Enemy Base Parameters plugin:
The problem is that the resulting number is usually a float number with decimals thanks to the exponent. The first thing I tried was to add ".to_i" and "Integer()" but to no avail; since the value completely disappears from the item drop screens.
How can I fix that problem without removing the exponent?
Code:
gold = 100 * Math.pow(1.2, level - 1) - (level * 2);
How can I fix that problem without removing the exponent?

