A = ((B / C) * 100);
B) starting value: 11
C) starting value: 100
A evaluates to 0. This isn't complicated math. The logic was working earlier, but now it isn't. I can even take a screenshot in my IDE and clearly show the values that are in the variables at the time i've got the loop paused. Unless im overlooking something embarrasingly simple, ive got an actual arithmetic error on my hands. I didnt think that was possible.
A should evaluate to 11, not 0.
As it turns out, it was an issue to do with ints vs floats and blah blah yeah so to answer my original question: Yes, I am infact stupid. lol.
"None are more hopelessly enslaved than those who falsely believe they are free."
"It is no measure of health to be well adjusted to a profoundly sick society."
"Hope is the first step on the road to dissapointment." -Jonah Orionhttp://tankzgame.blogspot.com