Hi,
I have a noob question.
Say that I have two integers:
int a = 80;
int b = 0;
Below log suggests an outcome of “0” instead of float “0.8”
Debug.Log("Chance: " + (a - b) / 100);
I tried manually putting (float) in front of the equation, and it doesn’t work either.
I tried create a float variable to store the equation, but it’s still a fat “0”.
Can anyone point out what’s the underlying problem here? I want that “0.8”
Thanks!