Haven't read the second part, but for the int-float part, since you're only going to use an integer result, you may try to simply the formula and see whether it can be done with only integer arithmetic.
The formula can be simplified as:
percentage = experience/(level*10)
The trick is, make sure that integer division operations are done at the very last moment (which already is the case in the above formula). So:
Code: ags
Note that since it now uses integer division, the result may deviate a tiny bit from what was done with floating point division and then have the result truncated.
The formula can be simplified as:
percentage = experience/(level*10)
The trick is, make sure that integer division operations are done at the very last moment (which already is the case in the above formula). So:
lbExp.Text = String.Format("%d%",experience/(level*10));
Note that since it now uses integer division, the result may deviate a tiny bit from what was done with floating point division and then have the result truncated.