Because 480/768 is zero, when you're dealing with integers. Convert them to float before doing the division. Like this:

float iPorcentage = ((float)iDrawedHeight)/(float)iScreenHeight;