Having Decimal Number Problems

I have made the following formula for gold drops from enemies with Yanfly's Enemy Base Parameters plugin:
Code:
gold = 100 * Math.pow(1.2, level - 1) - (level * 2);

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?
Why not wrap the whole formula in Math.floor?

Code:
gold = Math.floor(100 * Math.pow(1.2, level - 1) - (level * 2));
Oh... Solved. xD
I'm sorry, I'm just terrible with programming languages. I only started dealing with them upon using RPG Maker. Just searched up what the Math.floor() function does. I will probably use that very often later on.

Thank you SO MUCH for your valuable help. Whenever I use the function in any code in the future, I will be remembering you. xD
LoL No worries.
I learned from these forums as well!
Glad I'll always have a place in your programming heart! ;-)

Original thread: https://forums.rpgmakerweb.com/threads/having-decimal-number-problems.116505/