Float returning 0?

BlitzMax Forums/BlitzMax Beginners Area/Float returning 0?

Hmm, I know I must be doing something really stupid, here is my code:
Local number:Int = CountBlock()
Local percentage:Float = ( number / (COLUMNS*ROWS) ) *100


Now number is returning 55, (COLUMNS*ROWS) = 70 but percentage is equalling 0.0!?!?!

Where is the obvious error? ;-)
cheers

Use type casting:
p:Float = (float(number) / (columns*rows))*100

excellent - thanks