So, I have two numbers, lets say I have 97 and 32.
I need to get 97% of 32, which would be 31.04.
In code, I have these variables
int amountFree = 32;
int percentToGet = 97;
What would be the formula to calculate a specific percent of a specific number?
It's not as simple as that though as I wont always know the values.