Unity keeps printing 0..

This is seriously not right… I’ve been trying ti make a health bar, and the equation basically was

print(300*(10/100));

0

At first I used my variables, then i simply went to integers, and when that wasn’t working, I created a NEW UNITY PROJECT and I STILL got 0. Something is terribly not right and i have absolutely no clue what it is. Has anyone ever gotten this before? Do I have to reinstall unity or something? I’m using 4.2.0f4 right now, so I haven’t updated yet.

This is using integer division, for which 10/100 == 0. Use the ‘f’ suffix to designate floats… change to 300f and 10f and you will get 10f/100 == 0.1, and 300f*0.1f == 30.